.fix themeswitcher button

This commit is contained in:
skidoodle 2023-04-09 11:40:39 +02:00
parent 59d88339bd
commit 3a2ff6d9bc

View file

@ -20,15 +20,15 @@ export const ThemeSwitcher = () => {
return ( return (
<button <button
aria-label='Toggle Dark Mode' aria-label='Switch Theme'
type='button' type='button'
className='focus:outline-none bg-none xs:bg-gray-200 xs:dark:bg-gray-800 rounded-lg p-3 h-10 w-10 flex items-center justify-center ml-auto' className='mr-5 mt-5 flex ml-auto'
onClick={() => toggle()} onClick={() => toggle()}
> >
{theme === 'light' ? ( {theme === 'light' ? (
<BsMoonFill style={{ fill: 'black' }} size={300} /> <BsMoonFill style={{ fill: 'black' }} size={25} />
) : ( ) : (
<BsSunFill size={300} /> <BsSunFill size={25} />
)} )}
</button> </button>
); );