Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Migrate bpk-component-rating to CSS custom properties #4810

Closed

Description

Parent

#4792

What to build

Migrate SASS tokens in bpk-component-rating to CSS custom properties with SASS fallbacks.

Tokens with CSS vars:

  • $bpk-text-secondary-day → var(--bpk-text-secondary, ...)

Gap — keep as bare SASS token (no CSS var exists yet):

  • $bpk-one-pixel-rem — hairline border utility, not in token-sync

No themeAttributes.tsx needed — no --bpk-private-rating-* component colour vars exist (note: --bpk-private-rating-bar-* vars exist but belong to bpk-component-rating's bar sub-component if applicable).

Acceptance criteria

  • Covered tokens replaced with var(--css-var, tokens.$sass-fallback)
  • Gap token ($bpk-one-pixel-rem) left as bare SASS token with a comment noting the gap
  • No var() calls reference CSS vars that don't exist in token-sync/css/
  • Storybook stories updated to include a dark mode story
  • Existing tests pass unchanged
  • No new CSS custom property names invented

Blocked by

None — can start immediately.

Activity

  1. added
    ready-for-agent
    needs-triage
    and removed
    ready-for-agent
    on Jul 3, 2026
  2. added
    ready-for-agent
    and removed
    needs-triage
    ready-for-agent
    on Jul 22, 2026
  3. added 2 commits that reference this issue on Jul 22, 2026
    555b7b1
    0dc5e0a
  4. added a commit that references this issue on Jul 23, 2026
    98f523d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions