Skip to content

Commit 44b5637

Browse files
committed
feat: Adapt svg classes to use color of parent, add group:hover
1 parent 8665738 commit 44b5637

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/ThemeSwitch.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Sun = () => (
99
xmlns="http://www.w3.org/2000/svg"
1010
viewBox="0 0 20 20"
1111
fill="currentColor"
12-
className="h-6 w-6 text-gray-900 dark:text-gray-100"
12+
className="group:hover:text-gray-100 h-6 w-6"
1313
>
1414
<path
1515
fillRule="evenodd"
@@ -23,7 +23,7 @@ const Moon = () => (
2323
xmlns="http://www.w3.org/2000/svg"
2424
viewBox="0 0 20 20"
2525
fill="currentColor"
26-
className="h-6 w-6 text-gray-900 dark:text-gray-100"
26+
className="group:hover:text-gray-100 h-6 w-6"
2727
>
2828
<path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" />
2929
</svg>
@@ -37,7 +37,7 @@ const Monitor = () => (
3737
stroke-width="2"
3838
stroke-linecap="round"
3939
stroke-linejoin="round"
40-
className="h-6 w-6 text-gray-900 dark:text-gray-100"
40+
className="group:hover:text-gray-100 h-6 w-6"
4141
>
4242
<rect x="3" y="3" width="14" height="10" rx="2" ry="2"></rect>
4343
<line x1="7" y1="17" x2="13" y2="17"></line>

0 commit comments

Comments
 (0)