-
Notifications
You must be signed in to change notification settings - Fork 464
♿(frontend) improve screen reader support in DocShare modal with aria… #1628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
f0a76cc to
b3e403d
Compare
a82b0a3 to
5d6ade1
Compare
|
Size Change: +258 B (+0.01%) Total Size: 4.07 MB
|
5d6ade1 to
9f5ed00
Compare
adds relevant aria-labels to enhance accessibility for assistive technologies Signed-off-by: Cyril <[email protected]>
9f5ed00 to
1a5281b
Compare
| style={{ | ||
| position: 'absolute', | ||
| left: '-10000px', | ||
| width: '1px', | ||
| height: '1px', | ||
| overflow: 'hidden', | ||
| }} | ||
| > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The style attach with sr-only is not enough ?
| // Announce to screen readers | ||
| const userName = user.full_name || user.email; | ||
| setLiveAnnouncement( | ||
| t( | ||
| '{{name}} added to invite list. Add more members or press Tab to select role and invite.', | ||
| { | ||
| name: userName, | ||
| }, | ||
| ), | ||
| ); | ||
| // Clear announcement after it's been read | ||
| setTimeout(() => setLiveAnnouncement(''), 100); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find a bit strange to do the announcement, we have a notification system, but I think we decided to not display a notification for that, because the invitation list will display the user that you just add, it is already like a announcement.
| - ♿(frontend) improve ARIA in doc grid and editor for a11y #1519 | ||
| - ♿(frontend) improve accessibility and styling of summary table #1528 | ||
| - ♿(frontend) add focus trap and enter key support to remove doc modal #1531 | ||
| - ♿(frontend) improve screen reader support in DocShare modal #1628 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During rebase, this part will have to go under Unrelease
Purpose
Improve accessibility in the DocShare modal by enhancing screen reader support.
this fix this issue too
Proposal
ariaLabelprop toDocRoleDropdownfor contextual role change labelsariaLabelinDocShareAccessRequest,Invitation, andMemberitemsDocShareModalfor: