Skip to content
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

A11y: Change anchor tags used in StructuredNavigation component #767

Open
1 task
Dananji opened this issue Jan 31, 2025 · 0 comments
Open
1 task

A11y: Change anchor tags used in StructuredNavigation component #767

Dananji opened this issue Jan 31, 2025 · 0 comments
Labels
enhancement New feature or request structured_nav Improvements/fixes in structured nav

Comments

@Dananji
Copy link
Collaborator

Dananji commented Jan 31, 2025

Description

StructuredNavigation component uses <a> tags to display time-span elements, these provide navigation within the structural metadata. These anchor tags have href attributes linking to media-fragments in the Canvas, which are identifier links that doesn't serve the purpose of real page navigation.

These links are used by Ramp for internal navigation and status updates in the JavaScript code without providing any DOM navigation.

For a user using a screen reader on the page, this is very misleading. From the accessibility tree they can understand there are anchor tags on the page, but these links don't provide any meaningful DOM navigation. When such a link is selected and clicked by the user it re-renders the player and seek it to the start time in the media-fragment, but doesn't provide a meaningful response that can be understood by a screen reader.

But for a user who can see, they can observe the visual effect of the player seeking to the start time of the media fragment linked in the time-span and the time-span link getting highlighted when they interact with such a link.

To understand this better, on a MacOS try using the VoiceOver program in the Ramp demo site.
When using the links listed by the program on the page (Cmd+F5 => Ctrl+Option+U), those interactions don't provide any meaningful feedback to a visually impaired user.

Done Looks Like

  • change the use of anchor tags in the structured navigation links. Possible elements that can be used are button, span that are styled as links
@Dananji Dananji added enhancement New feature or request structured_nav Improvements/fixes in structured nav labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request structured_nav Improvements/fixes in structured nav
Projects
None yet
Development

No branches or pull requests

1 participant