Description
Compliance holds vary in severity from advisory to blocking. Design a three-tier severity badge system (Advisory, Warning, Blocking) with a legend that appears on any page displaying holds.
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/components/ComplianceHoldBanner.tsx
- Badges must convey severity via color plus icon/shape
Suggested execution
- Fork the repo and create a branch
git checkout -b uiux/compliance-severity-badges
- Implement changes
- Define three severity tokens and icon set
- Design the compact and detailed badge variants
- Draft the legend popover accessible via "?" affordance
- Validate accessibility and responsive assumptions
Test and commit
- Run checks
npm run lint and component/visual tests
- Cover edge cases
- Multiple concurrent holds, RTL layout, print stylesheet
- Include screenshots/before-after and accessibility (axe) notes
Example commit message
design: compliance severity badges
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Compliance holds vary in severity from advisory to blocking. Design a three-tier severity badge system (Advisory, Warning, Blocking) with a legend that appears on any page displaying holds.
Requirements and context
src/components/ComplianceHoldBanner.tsxSuggested execution
git checkout -b uiux/compliance-severity-badgesTest and commit
npm run lintand component/visual testsExample commit message
design: compliance severity badgesGuidelines