fix(ui): keep console layout usable at mid widths
This commit is contained in:
parent
0c75220adc
commit
8bb5052dd5
6 changed files with 98 additions and 14 deletions
|
|
@ -9,11 +9,10 @@ export interface ThemeToggleProps {
|
|||
|
||||
export function ThemeToggle({ theme, onThemeChange }: ThemeToggleProps) {
|
||||
const nextTheme = getNextUiTheme(theme);
|
||||
const label = `Switch to ${nextTheme} theme`;
|
||||
|
||||
return (
|
||||
<button
|
||||
aria-label={label}
|
||||
aria-label="Light theme"
|
||||
aria-pressed={theme === "light"}
|
||||
className="theme-toggle"
|
||||
data-ui-theme-current={theme}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue