File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,20 @@ function ModeToggle({ className }: { className?: string }) {
3535 >
3636 < button
3737 onClick = { darkModeHandler }
38- className = "relative h-10 w-10 transform overflow-hidden rounded-full border border-gray-300 shadow-sm transition-all duration-200 hover:shadow-md focus:outline-none focus:ring-1 focus:ring-gray-600 active:scale-95 dark:border-gray-600 "
38+ className = "relative h-10 w-10 transform rounded-full bg-[#87a1bc] transition-all duration-200 active:scale-95 hover:ring-1 hover:ring-[#b0c7de] hover:ring-offset-0 focus-visible :outline-none focus-visible :ring-1 focus-visible :ring-ring disabled:pointer-events-none disabled:opacity-50 dark:bg-slate-900 dark:text-white dark:hover:bg-slate-900/90 dark:hover:ring-[#46576b] "
3939 aria-label = { dark ? 'Enable light mode' : 'Enable dark mode' }
4040 >
41- < div className = "absolute inset-0 bg-gray-100 transition-colors duration-300 dark:bg-gray-800" > </ div >
4241 < div className = "absolute inset-0 flex items-center justify-center" >
4342 < FontAwesomeIcon
44- icon = { ! dark ? faMoon : faSun }
43+ icon = { dark ? faSun : faMoon }
4544 className = "h-5 w-5 transform text-gray-900 transition-all duration-300 hover:rotate-12 dark:text-gray-100"
4645 fixedWidth
4746 />
4847 </ div >
49- < div className = "absolute inset-0 bg-gray-200 opacity-0 transition-opacity duration-200 hover:opacity-20 dark:bg-gray-700" > </ div >
5048 </ button >
5149 </ Tooltip >
5250 </ div >
5351 )
5452}
5553
56- export default ModeToggle
54+ export default ModeToggle
You can’t perform that action at this time.
0 commit comments