mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-19 06:33:33 +09:00
improve accessiblity
This commit is contained in:
@@ -28,7 +28,7 @@ const { theme_switcher }: { theme_switcher: boolean } = config.settings;
|
||||
<>
|
||||
<Image
|
||||
src={src ? src : logo}
|
||||
class={`${theme_switcher && "dark:hidden"}`}
|
||||
class={`inline-block ${theme_switcher && "dark:hidden"}`}
|
||||
width={logo_width.replace("px", "") * 2}
|
||||
height={logo_height.replace("px", "") * 2}
|
||||
alt={title}
|
||||
|
||||
@@ -10,6 +10,7 @@ const {className} = Astro.props;
|
||||
<div class={`theme-switcher ${className}`}>
|
||||
<input id="theme-switcher" data-theme-switcher type="checkbox" />
|
||||
<label for="theme-switcher">
|
||||
<span class="sr-only">theme switcher</span>
|
||||
<span>
|
||||
<!-- sun -->
|
||||
<svg
|
||||
|
||||
Reference in New Issue
Block a user