Repository navigation
fix(web): make the badge position choices visible in the Adjust popover - #5608
Merged
Quick104 merged 1 commit intoNov 30, 2026
Merged
Conversation
The Position diagram drew the positions you can pick as faint grey fills, 1.5:1 against the panel. Unselected positions and the reserved top-right corner are now outlined in --input, the theme's control edge (3.2:1, 4.6:1 with high contrast). Only the selected position is filled, so it stays distinct with any admin accent, including the slate preset that a grey fill would match. Closes Silo-Server#4915
Contributor
|
Warning Review limit reachedThis organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing. Next included review available in 59 minutes. View limit details
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #4915
Related issue: N/A
Validation tasks: none
Other clients: N/A (web-only settings popover; Apple, Android and Roku draw their own badge settings)
In a badge's Adjust popover, the Position diagram drew the positions you can pick as faint grey pills on a dark panel: 1.51:1, or 1.58:1 with high contrast. Controls need 3:1 (WCAG 1.4.11), so the choices were hard to see until you hovered or picked one. The dashed circle marking the reserved top-right corner was just as faint (2.06:1).
Unselected positions and the reserved corner are now outlined in
--input, the theme's control-edge token: 3.24:1 by default and 4.55:1 with high contrast. The selected position is still the only filled one.Approach
--inputalready has to hold 3:1 against the popover and card surfaces, andhighContrastContrast.test.tschecks that with and without high contrast, so no new colour is needed. The panel sits between those two surfaces.The markers are outlines rather than
--inputfills because of the slate accent preset (#64748b). It is 1.12:1 against an--inputfill, so a grey fill would make every position look selected. Hovering brightens the outline to--muted-foregroundand leaves the marker unfilled, for the same reason.Validation
Local build of this branch with the production web bundle, checked in headless Chromium at 1440px and 390px. Steps: Settings > Navigation & Cards > Badges > Ratings & Certifications, turn on IMDb Rating, then Adjust. Contrast was measured from the computed colours.
With the slate accent, the selected position is the only filled marker, including while you hover another one.
Clicking a position still selects it, and the choice is still there after a reload.
Web lint, format check, typecheck (
tsconfig.app.json), bundle budget andmake test-web: pass.No test added: this is a styling change, and the token contrast it relies on is already tested.
Silo has one theme, Midnight Cinema, which is dark, so no light theme was checked.
Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-5608/
Surface and build: web, Settings > Navigation & Cards > Badges > Adjust, on a local build of this branch, desktop and phone width, default and high contrast, default and slate accent.
Risks
None identified. Only class names in one popover change.
Checklist
AI Disclosure
--inputon hover made it look the same as the selected marker under the slate accent. The hover now brightens the outline instead, and both reviewers found nothing in the follow-up change. A second finding said a code comment was wrong about which markers are filled; that hover change makes the comment true.