-
Notifications
You must be signed in to change notification settings - Fork 69
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
[Vertical Tab Button]: accessibility issues related to the component #2742
Comments
related to #2525 @mari-shakhanava Thanks for the issue. Did you find any specification or rules about second case? How we should mark tab with notification dot? |
@AlekseyManetov I couldn't find a specific example in the WCAG specification, but there are two common ways to add screen-reader-only content: using the Here’s an example of using the sr-only class. I think it would be great to pass this text as a prop so that users can get clear information about what this marker specifically means. |
The The second option, using aria-label, seems like a better solution. However, it should be added on the project side using |
The .sr-only approach isn’t a hack—it’s based on a WCAG-recommended technique, though primarily for links. However, I understand your concerns about adding hidden DOM elements, as it might not align with library standards. I agree that aria-label is a more flexible option, allowing project-specific customization. We’ll proceed with this approach using rawProps={{ 'aria-label': '' }}. Thanks again! |
Case №1
Selected tab does not have accessible state. When User navigates through tabs with launched screen reader, then screen reader does not pronounce state of the selected tab, so it is not clear which tab is active.
Precondition
Screen Reader is ON
Steps to Reproduce
Actual result
Screen reader does not pronounce the information about which tab is active.
Failed WCAG checkpoint:
4.1.2 Name, Role, Value (Level A)
Expected result
Screen reader should pronounce the information about which tab is active (or selected).
Environment
Case №2 - out of UUI scope, #2742 (comment)
There is no notification for screen reader about tab with pointer (withNotify={true})
###Precondition
Screen Reader is ON
Steps to Reproduce
Actual result
Screen reader does not pronounce the information about the 'notification' mark on the tab.
Failed WCAG checkpoint:
4.1.2 Name, Role, Value (Level A)
1.1.1 Non-text Content (Level A)
Expected result
Screen reader should pronounce the information about the 'notification' mark on the tab.
Environment
The text was updated successfully, but these errors were encountered: