Skip to content

fix(webkit): draw the progress bar's track on --bg-placeholder - #893

Open
gabriel-lisboa-azion wants to merge 2 commits into
mainfrom
fix/progress-bar-track-token
Open

fix(webkit): draw the progress bar's track on --bg-placeholder#893
gabriel-lisboa-azion wants to merge 2 commits into
mainfrom
fix/progress-bar-track-token

Conversation

@gabriel-lisboa-azion

Copy link
Copy Markdown
Collaborator

Summary

  • The track used --bg-surface-raised, an opaque surface, so its 3:1 contrast against the fill only held on the background that token was chosen for. On a raised or overlay background the track disappeared into it.
  • --bg-placeholder is an alpha overlay, so the track keeps its contrast on any background the bar sits over. Spec's Theme gaps + a11y notes updated to match (checksum + last_updated refreshed).

How to test

  1. cd packages/webkit && npx vitest run src/components/feedback/progress-bar → 18 passed.
  2. pnpm storybook:dev → Components/Feedback/ProgressBar. The track reads as a recessed groove in both themes; place a bar inside a CardBox (raised) and inside a Dialog (overlay) and the track is still visible against both.

Notes

  • Token swap only; no prop, event, or slot change. catalog.json needs no rebuild (--bg-placeholder is already in its token set).

The track was an opaque raised surface, so it only held its 3:1 contrast against
the fill on the one background that surface was picked for. --bg-placeholder is an
alpha overlay, so the track keeps that contrast on any background the bar is
placed over — canvas, surface, raised or overlay.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant