Description
The ShareInput component in the revshare feature needs accessibility improvements.
While the component was made responsive, it lost some of the accessibility benefits that were present in the original table structure.
Affected component
Revenue Share
Accessibility Issues
- No table semantics: The data is tabular but doesn't use proper table structure
- Missing column headers: Screen readers can't associate data with column headers
- No row/cell relationships: Data relationships are not clear to assistive technology
- Input labels: Input fields may not have proper labels or descriptions
- Error announcements: Validation errors may not be announced properly
Files
frontend/app/components/redesign/components/revshare/ShareInput.tsx
Proposed Solutions (suggestion only!!)
Enhance Current Structure
- Add
role=\"table\", role=\"row\", role=\"columnheader\", role=\"cell\" attributes
- Use
aria-labelledby to associate cells with column headers
- Add proper labels for all input fields
- Implement
aria-live regions for error announcements
- Add
aria-describedby for validation messages
Acceptance Criteria
Description
The ShareInput component in the revshare feature needs accessibility improvements.
While the component was made responsive, it lost some of the accessibility benefits that were present in the original table structure.
Affected component
Revenue Share
Accessibility Issues
Files
frontend/app/components/redesign/components/revshare/ShareInput.tsxProposed Solutions (suggestion only!!)
Enhance Current Structure
role=\"table\",role=\"row\",role=\"columnheader\",role=\"cell\"attributesaria-labelledbyto associate cells with column headersaria-liveregions for error announcementsaria-describedbyfor validation messagesAcceptance Criteria