We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e7ede commit 1ee3104Copy full SHA for 1ee3104
apps/web/app/routes/resources.theme-switch.tsx
@@ -81,6 +81,7 @@ export function ThemeSwitch({
81
className="group bg-core-action-btn-background shadow-core-action-btn-shadow ring-core-action-btn-border hover:ring-core-action-btn-border-hover rounded-full px-3 py-2 shadow-lg ring-1 backdrop-blur transition"
82
>
83
{icon}
84
+ <span className="sr-only capitalize">{mode}</span>
85
</button>
86
</div>
87
</fetcher.Form>
@@ -149,8 +150,6 @@ function getThemeIcon(mode: Theme | 'system'): React.ReactElement {
149
150
mode === 'dark'
151
}
152
)}
- >
153
- <span className="sr-only capitalize">{mode}</span>
154
- </Icon>
+ />
155
);
156
0 commit comments