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-radio to CSS custom properties #4816

Closed

Description

Parent

#4792

What to build

Migrate SASS tokens in bpk-component-radio to CSS custom properties with SASS fallbacks. This component has --bpk-private-radio-* vars, so a themeAttributes.tsx is required.

Tokens with CSS vars:

  • $bpk-text-disabled-day → var(--bpk-text-disabled, ...)
  • $bpk-text-disabled-on-dark-day → var(--bpk-text-disabled-on-dark, ...)
  • $bpk-text-link-day → var(--bpk-text-deprecated-link, ...) (same value as --bpk-core-accent)

Private component vars (use with SASS fallback):

  • --bpk-private-radio-bg-default-disabled
  • --bpk-private-radio-bg-default-on
  • --bpk-private-radio-bg-on-contrast-off
  • --bpk-private-radio-bg-on-contrast-on
  • --bpk-private-radio-border
  • --bpk-private-radio-border-default-off

Gaps — keep as bare SASS tokens:

  • $bpk-one-pixel-rem — hairline border utility

Create themeAttributes.tsx exposing all --bpk-private-radio-* vars as camelCase keys.

Acceptance criteria

  • Covered tokens replaced with var(--css-var, tokens.$sass-fallback)
  • All --bpk-private-radio-* vars used with SASS fallbacks
  • themeAttributes.tsx created with camelCase keys for all private radio vars
  • themeAttributes-test.tsx created/updated to assert exported arrays
  • Gap token left as bare SASS token with a comment
  • 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 3 commits that reference this issue on Jul 22, 2026
    07150f6
    a047532
    dc8069f
  4. added a commit that references this issue on Jul 24, 2026
    0ede9d5
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