Skip to content

Bring the warning amber and the dock's header tools to 3:1 - #61

Merged
nbenn merged 5 commits into
mainfrom
spec-dock-status
Sep 30, 2026
Merged

nbenn merged 5 commits into
mainfrom
spec-dock-status

Conversation

@nbenn

@nbenn nbenn commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The warning border, border-warning, is amber-600 (#d97706) in light, a new step of the amber ramp. Amber-500 was 2.2:1 on white, under the 3:1 WCAG 1.4.11 asks of an edge or a dot that marks a state, and the unset and waiting status dots and a required empty field's edge are drawn in it. Amber-700, the warning text, would clear 3:1 too, but it is as dark as the danger red (1.04:1 between them), so an unset dot and a failed one would differ by hue alone. Dark is unchanged.
  • A test holds icons and status borders to 3:1 on bg-surface in both schemes, the non-text half of what axe checks for text in Chrome. It fails on the old amber.
  • The dock header's tools look like every other tool, text-muted with text-default on hover, in place of a quieter text-disabled, which is 2.5:1 on white and which the token table keeps for disabled controls.
  • The status dot's fills are the meaning tokens themselves, named in block_status_badge() next to their light values, with no --blockr-dock-status-* tokens in blockr.dock. The DAG draws from the same spec.

BristolMyersSquibb/blockr.dock#482 implements the dock side. Its tests hold the dot's literals to this package's tokens, so its amber-600 literal goes up once this merges.

At rest the "..." took border-strong, which the dark scheme keeps faint
for lines: 1.4:1 on bg-surface, where the icon all but vanished. The
tools now take text-disabled at rest and text-muted on hover.
The dot's fills point straight at the meaning tokens, which
block_status_style() names next to their light values, so blockr.dock
declares no status tokens and the DAG draws from the same spec.
@codecov

codecov Bot commented Sep 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The dock header's tools were a step quieter than other tools, in
text-disabled: 2.5:1 on white, under the 3:1 an active control's icon
needs (WCAG 1.4.11), and a colour the token table keeps for disabled
controls. They now look like every other tool.

The warning border was amber-500, 2.2:1 on white. The unset and waiting
status dots are drawn in it, and so is a required empty field's edge. It
is now amber-600, #d97706, a new step of the ramp, at 3.2:1 on white.
Amber-700, the warning text, would clear 3:1 too, but it is as dark as
the danger red (1.04:1 between them), so an unset dot and a failed one
would differ by hue alone. Dark mode is unchanged.

A test holds icons and status borders to 3:1 on bg-surface in both
schemes, the non-text half of what the Chrome check's axe covers for
text. It fails on the old amber.

The spec also names block_status_badge(), the function the DAG calls,
where it said block_status_style(), the dock's internal helper.
@nbenn nbenn changed the title Draw the dock's header tools and status dot from blockr.ui's tokens Bring the warning amber and the dock's header tools to 3:1 Sep 30, 2026
nbenn added a commit to BristolMyersSquibb/blockr.dock that referenced this pull request Sep 30, 2026
The header's tools rested in text-disabled, 2.5:1 on white: under the
3:1 an active control's icon needs (WCAG 1.4.11), and the colour
blockr.ui keeps for disabled controls. They now take the colours of
blockr.ui's other tools, text-muted at rest and text-default on the
hover wash, as BristolMyersSquibb/blockr.ui#61 now specifies.
@nbenn
nbenn marked this pull request as ready for review September 30, 2026 11:37
@nbenn
nbenn added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit 22403b3 Sep 30, 2026
11 checks passed
@nbenn
nbenn deleted the spec-dock-status branch September 30, 2026 11:51
nbenn added a commit to BristolMyersSquibb/blockr.dock that referenced this pull request Sep 30, 2026
The status spec's literal for the unset and waiting dots is the light
value of border-warning, which BristolMyersSquibb/blockr.ui#61 moves
from amber-500 to amber-600 (#d97706), the first amber at 3:1 on white.
The DAG's canvas draws the literal, and the token test holds it to the
token, so this goes up once that PR has merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant