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

Disable transcript tab when there are no transcripts #5574

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

masaball
Copy link
Contributor

Original implementation only hid the transcript tab. This resulted in a user being able to navigate to the tab content via arrow key navigation. We can prevent this by adding disabled to the class of the tab.

Original implementation only hid the transcript tab. This resulted in a
user being able to navigate to the tab content via arrow key navigation.
We can prevent this by adding `disabled` to the class of the tab.
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, but I'm wondering if a screen reader will still be trying to read the transcript tag and we might need to set aria-disabled or aria-hidden. I'm not quite sure how to test this unless the SiteImprove browser extension would flag it due to the inconsistency.

@masaball
Copy link
Contributor Author

masaball commented Jan 16, 2024

Browserstack has a screen reader on at least the chrome browsers. Just tested there and the screen reader did not read out the transcript tab with just the hidden and disabled flags provided and siteimprove browser plugin did not flag anything. So I think we are good accessibility wise.

@masaball masaball merged commit 24fd05d into develop Jan 16, 2024
@masaball masaball deleted the metadata_tab_navigation branch January 16, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants