Skip to content

Commit 75eb2c8

Browse files
authored
Improve topbar focus contrast (#150)
1 parent 29d3aa4 commit 75eb2c8

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

src/ui/PodcastView/TopBar.svelte

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,38 @@
7979
justify-content: center;
8080
width: 100%;
8181
height: 100%;
82-
opacity: 0.1;
82+
color: var(--text-muted, #8a8f98);
83+
opacity: 1;
8384
border: none;
8485
background: none;
8586
padding: 0;
87+
transition: color 120ms ease, background-color 120ms ease,
88+
box-shadow 120ms ease, opacity 120ms ease;
8689
}
8790
88-
.topbar-selected {
89-
opacity: 1 !important;
91+
.topbar-menu-button:focus-visible {
92+
outline: 2px solid var(--interactive-accent, #5c6bf7);
93+
outline-offset: 2px;
94+
}
95+
96+
.topbar-menu-button:disabled {
97+
color: var(--text-faint, #6b6b6b);
98+
opacity: 0.45;
99+
cursor: not-allowed;
90100
}
91101
92102
.topbar-selectable {
93103
cursor: pointer;
94-
opacity: 0.5;
104+
color: var(--text-normal, #dfe2e7);
105+
}
106+
107+
.topbar-selectable:hover {
108+
background-color: var(--background-divider);
109+
}
110+
111+
.topbar-selected {
112+
color: var(--interactive-accent, #5c6bf7);
113+
background-color: var(--background-secondary, var(--background-divider));
114+
box-shadow: inset 0 -2px var(--interactive-accent, #5c6bf7);
95115
}
96116
</style>

0 commit comments

Comments
 (0)