Skip to content

fix(site/src): keep selected option check icon color constant on focus - #32012

Merged
chrifro merged 2 commits into
mainfrom
fix-deq-selected-check-icon-color
Nov 13, 2026
Merged

chrifro merged 2 commits into
mainfrom
fix-deq-selected-check-icon-color

Conversation

@chrifro

@chrifro chrifro commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

The check icon on the selected option in the Create user "Login type" select and "Organization" combobox took its color from the option text. When keyboard focus moved to another option, the check dimmed from #FFFFFF to #A1A1AA (2.56:1), which Deque flagged under WCAG 1.4.11. The icon now always uses text-content-primary, so the selected indicator keeps the same color whether or not its option has focus. In light mode it stays near-black.

Closes DEQ-88. The other two parts of that ticket (focus rings on the organization and login type options) were fixed in #30354 and #31567.

A new SelectedOptionNotHighlighted story lets Pixel capture the selected org's check while another option has focus. The Login type state is already covered by LoginTypeKeyboardFocus.

Before and after

The selected option ("password" and "My Organization") is shown while focus is on another option. Check icon color measured with Playwright in Storybook:

Before (#A1A1AA) After (#FFFFFF)
Login type
Organization
Decision log
  • Constant color instead of a dimmer focused state. The check marks selection, not focus, so it should not change when focus moves. content-primary matches the focused text color, so the icon looks the same as before while its option has focus.
  • Scoped to the two audited controls. The shared SelectItem and DropdownMenuCheckboxItem, and about 10 other CommandItem comboboxes (Autocomplete, FilterCombobox, the agents org and project selectors, and others), have the same pattern. Changing the shared SelectItem would restyle about 31 selects that Create user does not use, so those belong in a follow-up.

Generated by Coder Agents on behalf of @chrifro.

The check icon in the Create user Login type select and Organization combobox inherited the item text color, so it dimmed from content-primary to content-secondary when focus moved to another option. Pin it to content-primary.
@chrifro
chrifro temporarily deployed to main November 10, 2026 17:50 — with GitHub Actions Inactive
@chrifro
chrifro temporarily deployed to main November 10, 2026 17:50 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

DEQ-88

@chrifro
chrifro requested a review from aqandrew November 11, 2026 08:06
@chrifro
chrifro marked this pull request as ready for review November 11, 2026 08:06
@chrifro
chrifro temporarily deployed to main November 11, 2026 08:06 — with GitHub Actions Inactive
@chrifro
chrifro merged commit f4649f2 into main Nov 13, 2026
27 checks passed
@chrifro
chrifro deleted the fix-deq-selected-check-icon-color branch November 13, 2026 08:52
@chrifro
chrifro temporarily deployed to docs-preview November 13, 2026 08:52 — with GitHub Actions Inactive
@chrifro
chrifro temporarily deployed to main November 13, 2026 08:52 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026

This branch was previously deployed

2 inactive deployments
docs-preview — a0fbfd15 Deployed Nov 13, 2026 by chrifro via cleanup #20
main — a0fbfd15 Deployed Nov 13, 2026 by chrifro via cla #256000
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants