[Bug]: Contrast and Glass opacity sliders lack end labels, default markers, and readable tracks #47761
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- Open Settings → Appearance → Interface.
- Make sure the settings scope is set to All projects (these are device-level settings).
- Inspect the Contrast and Glass opacity sliders.
- Drag Contrast all the way to the right (200%) and Glass opacity all the way to the left (40%), and look at the track, thumb, and percentage chip beside each slider.
Expected behavior#
Both sliders should make their range, direction, and default position clear at a glance. The full slider track — including the unfilled portion — should be clearly visible (at least 3:1 contrast under WCAG 2.1 SC 1.4.11, Non-text Contrast), and screen readers should announce a readable percentage value.
Actual behavior#
A low vision user can easily misread these sliders or drag them in the wrong direction. A low vision user reported that the sliders seemed set to unexpected values — describing "200% on the right and 40% on the left" (the far ends of two different sliders), which points to how unclear the ranges and directions are.
- No end labels or default marker: Contrast runs from 50% to 200% (default 100%, one-third along the track) and Glass opacity runs from 40% to 100% (default 80%, two-thirds along the track). Neither track labels its low or high end or marks where the default sits.
- Value chip sits on the left: The
<output>readout always sits to the left of the slider track. When Contrast is dragged all the way to the right, "200%" sits on the left side, making it easy to mistake the current value for a left-end scale label. - Easy to set Glass opacity backwards: Dragging "Glass opacity" left can feel like turning "glass" down, but it actually lowers opacity to 40%, making menus, dialogs, and the composer more see-through — the hardest setting to read with low vision.
- Unfilled track is barely visible: The unfilled part of the track uses
color-mix(in srgb, var(--contrast-muted-foreground) 22%, transparent), which computes to about 1.3:1 against the default background. The right end of the track is hard to see, so users cannot tell how much range remains. - No spoken units for assistive tech: The
<input type="range">controls do not setaria-valuetext(an attribute that lets screen readers announce a human-readable value like"100 percent"instead of a bare number).
Reading the source ruled out a track-alignment or persistence bug: the fill calculation lines up with the thumb, and both values validate and save normally. As a possible confounder when testing, if Settings is scoped to a single project instead of All projects, both controls are shown inert with the message "Saved on this device. Select All projects to change it."
Where it comes from
apps/web/src/components/settings/AppearanceSettingsPanel.tsx:195-270— Contrast and Glass opacity slider rows, left-placed<output>chips, and<input type="range">without end labels, default markers, oraria-valuetext.packages/contracts/src/settings.ts:147-164— defines Glass opacity40–100(default80) and Contrast50–200(default100).apps/web/src/index.css:1022,1031— sets the unfilled slider track tocolor-mix(in srgb, var(--contrast-muted-foreground) 22%, transparent).apps/web/src/components/settings/settingsLayout.tsx:473-474— renders device-local settings inert when a project scope is selected.
Suggested direction
- Label both ends of each track in plain words ("Lower" / "Higher" for Contrast; "See-through" / "Solid" for Glass opacity) and add a visible marker at the default value.
- Keep the numeric value readout, but place or label it so it clearly reads as the current value rather than a left-end minimum.
- Raise the unfilled track contrast to at least 3:1.
- Add
aria-valuetext(such as"100 percent") while keeping the native<input type="range">inputs. - Translate the new labels through the app's translation setup (
docs/internals/14_i18n.md).
Related: #40809.
Impact#
Minor bug or occasional failure
Version or commit#
0.1.13, main @ ca36afaeb1d
Environment#
Web and desktop (shared apps/web UI). Found by reading the source at ca36afaeb1d. The unfilled-track contrast ratio (~1.3:1) was computed from the default theme's colour values, not measured in the running app. Mobile was not checked (it does not use these components).
Logs or stack traces#
No response
Screenshots, recordings, or supporting files#
No response
Workaround#
Use the reset button that appears beside each slider after changing it to return to the default (100% Contrast, 80% Glass opacity), and drag Glass opacity all the way right (100%) for solid surfaces.
Drafted by Gemini 4 Neon and reviewed by Claude Opus 5.5 in T3 Code.
akj(GitHub profile, opens in a new tab) added labelsbug
akj(GitHub profile, opens in a new tab) added labelsneeds-triage
Sign in to join this conversation.