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

Font Library modal: Tab title is repeated in content #58277

Closed
Tracked by #60528
mikachan opened this issue Jan 25, 2024 · 4 comments
Closed
Tracked by #60528

Font Library modal: Tab title is repeated in content #58277

mikachan opened this issue Jan 25, 2024 · 4 comments
Labels
[Feature] Font Library [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Type] Enhancement A suggestion for improvement.

Comments

@mikachan
Copy link
Member

mikachan commented Jan 25, 2024

What problem does this address?

In the Font Library modal, the tab title is displayed in both the tab and the contents of the tab:
Screenshot 2024-01-25 at 19 50 30

What is your proposed solution?

We should consider removing the title inside the tab contents to reduce the repetition.

@colorful-tones
Copy link
Member

Without looking at the code - we should consider screen readers and tab order here for accessibility. At the very least, we'll need aria-labelledby and aria-label to associate the tab with the tab-panel content, and the focus should likely shift to the first focusable item once a tab is selected.

In other words, the duplication of the text may be ideal, or if it is not, then we could hide it with CSS (.sr-only), but we want to make sure we do any of the above with accessibility at the forefront.

@colorful-tones colorful-tones added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Jan 25, 2024
@mikachan
Copy link
Member Author

Thanks @colorful-tones! I agree, and this issue was opened with accessibility in mind.

@akasunil
Copy link
Member

Hi @mikachan
Is this issue still relevant? Design has been updated of font library. Here is latest screenshot
image

@mikachan
Copy link
Member Author

Oh true, thanks @akasunil! I think we can close this then 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Font Library [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants