Description
Power users browsing ledger, audit trail, and reports want denser views. Add Comfortable/Cozy/Compact density modes via design tokens that adjust line-height, padding, and row height, with a per-user toggle.
Requirements and context
- Must be accessible (WCAG 2.1 AA), responsive, and documented in the design system
- Should be consistent with existing patterns and easy to review
- Relevant code:
src/index.css
- Compact mode must still meet 44x44 minimum touch target on mobile interactive controls
Suggested execution
- Fork the repo and create a branch
git checkout -b uiux/density-modes
- Implement changes
- Define density tokens and corresponding CSS variables
- Add density toggle in user preferences
- Document component opt-in/opt-out
- Validate accessibility and responsive assumptions
Test and commit
- Run checks
npm run lint and component/visual tests
- Cover edge cases
- Tables, forms, navigation, mobile touch targets, persistence across sessions
- Include screenshots/before-after and accessibility (axe) notes
Example commit message
design: density modes via tokens
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Power users browsing ledger, audit trail, and reports want denser views. Add Comfortable/Cozy/Compact density modes via design tokens that adjust line-height, padding, and row height, with a per-user toggle.
Requirements and context
src/index.cssSuggested execution
git checkout -b uiux/density-modesTest and commit
npm run lintand component/visual testsExample commit message
design: density modes via tokensGuidelines