Skip to content

ui-kit: HygieneBlocker, HygieneEnd and the HygieneCard story render actions and fix options unstyled #3751

Closed

Description

@schlessera

Context

Decisions/HygieneBlocker, Decisions/HygieneCard and Decisions/HygieneEnd look partly unstyled on main (57abb7b):

  • HygieneCard. The story's fix options (stories/decisions/HygieneCard.stories.tsx:22-36) are bare browser radios with 16px body text, much larger than the card's own type. The app renders the same options as bordered rows with a teal accent and a selected-edge state (packages/ui-react/src/components/activity/hygiene-review.tsx:701-740). So the story documents a component nobody ships.
  • HygieneBlocker. "Open configuration ›" and "Start again" (packages/ui-kit/src/decisions/HygieneCard.tsx:267-268) are TextButtons placed directly in a column flex stack (HygieneCard.tsx:51). They stretch to the full column and centre their label, so two link-styled actions float centred under a left-aligned heading and callout.
  • HygieneEnd. "Show snoozed (2)" (HygieneCard.tsx:238) stretches and centres the same way.

All three also inherit the wrong font for every TextButton (the undefined --bk-font-* references, #3752), which makes the text actions render at 16px.

Scope

  • Keep HygieneBlocker and HygieneEnd text actions at their intrinsic width and align them with the content they act on. HygieneBlocker actions sit together in one row, start-aligned. HygieneEnd's centred summary keeps its action centred and content-sized.
  • Make the HygieneCard story's fix options match what the app renders: bordered rows of at least 44px, kit type, teal accent and a selected edge. Do that by reusing the app's markup shape, or the kit's ChoiceOption inside a radiogroup.
  • Regenerate any moved visual baselines.

Out of scope

Acceptance criteria

  • In HygieneBlocker, both actions are content-sized (narrower than the column) and start-aligned, with 44px targets.
  • In HygieneEnd, "Show snoozed" is content-sized and centred.
  • HygieneCard stories render the fix options as bordered, kit-typed rows with a visible selected state. No bare radio label uses the 16px body font.
  • Story play functions assert the content-sized actions, and fail on main.
  • Moved visual baselines are regenerated and reviewed.

Verification

Storybook Vitest project in both themes, and the hygiene-review visual baselines.

Contract impact

None.

Activity

  1. added this to the 0.45.0 milestone on Nov 8, 2026
  2. added
    type: fix
    area: ui-kit
    priority: p2
    agent-ready
    on Nov 8, 2026
  3. self-assigned this
    on Nov 8, 2026
  4. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claimed (claim-180872) together with #3750, #3751 and #3752, on branch fix/3752-storybook-component-styles. One PR, because all three move the same hygiene-review visual baselines. No open PR references these issues.

  5. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Delivered in #3756 (squash b16352f). The squash tree bfd314d equals the candidate checkout tree from confirmation run 42553679791. Failing-first and mutation receipts and the regenerated baselines are listed in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-kitpriority: p2type: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions