Adds a Live region component that the file uploader will send text to, to be read out by the screen reader. Adds aria-required and aria-invalid logic, for the File field.
Code changes
Adds a LiveRegion component and LiveRegionContext for Live region re-usability
Updates the File in validateFunctions, to cater for invalid and required logic
Adds copy for extra text that will be read out by screen readers, these will need translations eventually
Resolves JIRA WSTEAM1-1027
Overall changes
Adds a Live region component that the file uploader will send text to, to be read out by the screen reader. Adds
aria-required
andaria-invalid
logic, for the File field.Code changes
validateFunctions
, to cater for invalid and required logicTesting
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines