improve accessiblity

This commit is contained in:
somrat sorkar
2023-04-17 15:30:07 +06:00
parent 905846f792
commit 365569b18f
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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