feat(ui): Add form design system with uswds styling #4
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.
Description
This PR completes the migration of the UI package to use USWDS
(U.S. Web Design System) classes as the primary styling
approach, establishes a comprehensive testing architecture,
and improves type safety throughout the codebase.
The changes include:
BEM classes
colocated test architecture
improved type safety
This work ensures the UI package is production-ready with
proper USWDS styling, comprehensive test coverage, and
improved maintainability.
Type of Change
Please delete options that are not relevant.
Checklist
areas
feature works
downstream modules
Screenshots (if appropriate)
N/A - Component styling and test infrastructure changes
Additional Notes
Test Coverage
123 unit tests passing across 7 test suites
Playwright E2E tests configured for Storybook stories
Tests colocated in tests directories within component
folders
Type Safety Improvements
Created FieldValue type union for validation system
Replaced unsafe type assertions with proper type guards
Zero TypeScript errors or ESLint warnings
Components Updated
Button, Card, Form, Accordion, Alert, Badge, Typography
components now use USWDS classes
All components maintain backward compatibility while using
USWDS as primary styling