feat: design-system docs#500
Merged
greatest0fallt1me merged 1 commit intoJul 24, 2026
Merged
Conversation
Expand DesignSystemDocs page (src/pages/DesignSystemDocs.tsx) from a
minimal 6-component accordion stub into a full, tabbed design-system
reference for contributors and designers.
## What changed
### src/pages/DesignSystemDocs.tsx
- Added tabbed navigation: Components | Colours | Typography | Tokens | Utilities
- Colour palette section with themed swatches for all token groups
(Background, Text, Brand & Actions, Semantic, Borders)
- Typography scale specimens rendered with the correct HTML element per level
- Spacing & radius token reference table (--radius-xl/lg/md, --transition-speed)
- CSS utility-class catalogue grouped by category (button, layout, typography,
link, state)
- Expanded component catalogue from 6 to 11 entries, adding:
Primary Button (with disabled state), Secondary Button, Danger Button,
Surface Card, Eyebrow Label, Status Chip, Skip Link, SearchBar,
Skeleton, EmptyState, ServerError
- Each component accordion now shows: live example, copy-enabled usage
snippet, design-token chip list, and an enhanced props table with
Required and Default columns
- Search / filter box across component names, descriptions, and tokens;
auto-expands matching accordions; shows an empty state with clear action
- aria-live region announces filtered result counts to screen readers
- WCAG 2.1 AA: aria-expanded/controls on all accordions, role=tablist/tab/
tabpanel with aria-selected, role=search on the filter, sr-only live region
### src/pages/DesignSystemDocs.test.tsx
- Rewrote the test suite from 4 smoke tests to 34 focused tests covering:
- Page heading and eyebrow label rendering
- All five tabs present and correctly switching (aria-selected, panel visibility)
- One tab selected at a time invariant
- Accordion default-open, expand-all, collapse-all, individual toggle
- aria-expanded and aria-controls correctness
- Search: filter by name, token name, description keyword
- Empty-state rendered on no-match query
- Clear-search restores full list
- Auto-expand on search query
- aria-live result-count announcement
- Copy-button presence and initial label
- Colour palette group labels and individual token names (panel-scoped)
- Typography specimen labels
- Spacing token names
- Utility class names and category headings (panel-scoped)
- Accessibility: tabpanel/tab roles, aria-labelledby linkage, search landmark
All 34 tests pass. Pre-existing failures in Breadcrumb, density, ApiCard,
FiltersSidebar, FiltersBottomSheet, and MarketplacePage are unrelated to
this change.
|
@martinshub-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Nice one — clean, focused change. Merging. 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #388
Expand DesignSystemDocs page (src/pages/DesignSystemDocs.tsx) from a minimal 6-component accordion stub into a full, tabbed design-system reference for contributors and designers.
What changed
src/pages/DesignSystemDocs.tsx
src/pages/DesignSystemDocs.test.tsx
All 34 tests pass. Pre-existing failures in Breadcrumb, density, ApiCard, FiltersSidebar, FiltersBottomSheet, and MarketplacePage are unrelated to this change.