Skip to content

fix: visual and accessibility fixes from Storybook review#3

Merged
anulman merged 1 commit intomainfrom
fix/storybook-review-items
Mar 7, 2026
Merged

fix: visual and accessibility fixes from Storybook review#3
anulman merged 1 commit intomainfrom
fix/storybook-review-items

Conversation

@anulman
Copy link
Owner

@anulman anulman commented Mar 7, 2026

Addresses all critical and needs-improvement items from the automated Storybook review.

Critical fixes

  • Primary color invisible in light mode — CSS variable self-reference loop ({colors.primary}var(--colors-primary) → itself). Inlined #007bff.
  • DangerZone action button styled as neutral — changed from variant="secondary" to variant="danger"
  • DangerZone no visual container — added red left-border + tinted background
  • Table empty state blank — added "No data available" row

Accessibility (WCAG)

  • Border contrast fails 1.4.11 — darkened stroke token #e0e0e0#b0b0b0 (~3.5:1 on white). Affects Input, Select, TextArea, Card, Checkbox.
  • Success badge fails AA — darkened #28a745#1a7a35 (~5.7:1 with white text)
  • Ghost button invisible — added border: 1px solid stroke

Not in this PR (story-level, no component changes needed)

  • Dialog/Modal stories need defaultOpen={true} — story config, not component bug
  • Toast stories need duration={Infinity} — same
  • Input/Select default stories should add labels — story improvement

Storybook deployed to https://kit.outsidetheboxmodel.com for visual verification.

Critical fixes:
- Fix primary color CSS variable self-reference (base: #007bff inline)
- DangerZone action button: secondary → danger variant
- DangerZone: add red left-border + tinted background container
- Table: add empty state row ('No data available')

Accessibility fixes:
- Border token darkened (#e0e0e0 → #b0b0b0) for WCAG 1.4.11 compliance
  (affects Input, Select, TextArea, Card, Checkbox borders)
- Success color darkened (#28a745 → #1a7a35) for WCAG AA text contrast
- Ghost button: add visible border (stroke color)

59 tests passing, typecheck clean.
@anulman anulman merged commit 2f8578d into main Mar 7, 2026
1 check passed
@anulman anulman deleted the fix/storybook-review-items branch March 7, 2026 05:13
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