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

fix(a11y): multiple a11y fixes #14

Merged

Conversation

torgeadelin
Copy link

Description

  • SR & Live Region
    - add new componet to handle SR annoucements with delay, as focus imput interrupts the annoucements
    - screen reader announcement no longer announces individual emojis, but rather the count of emojis found OR no emoji found message if none are found
    - add aria-atomic for the aria-live region to ensure the SR reads the whole message

  • Navigation
    - disabled top navigation buttons while search input is focused

  • Search
    - changed the outer div to a form with role search to improve semantics
    - add aria-hidden on the loupe icon in the search bar
    - add aria-label to the search input

  • Search Result & Default Categories
    - render no result message in the preview section, when preview section is not rendered. previously the no result was only shown in the preview, but since the picker already supports hiding it, we don't want to loose the visual cue of "no emojis found"
    - add aria-label to the outer div around the all the moji categories
    - add aria-labelledby for each group of emojis pointing to the section header, and add role = group

@torgeadelin torgeadelin force-pushed the feat/emoji-mart/more-a11y-fixes branch from 2719972 to e044514 Compare August 22, 2024 16:29
Copy link
Member

@JanPodmajersky JanPodmajersky left a comment

Choose a reason for hiding this comment

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

Thank you for the changes, I am not sure whether all are necessary 🤔 .

Catalin added 2 commits August 30, 2024 14:51
- SR & Live Region
	- add new componet to handle SR annoucements with delay, as focus imput interrupts the annoucements
	- screen reader announcement no longer announces individual emojis, but rather the count of emojis found OR no emoji found message if none are found
	- add aria-atomic for the aria-live region to ensure the SR reads the whole message

- Navigation
	- disabled top navigation buttons while search input is focused. This was added because while the input is focused, the tab navigation doesn't do anything in the current implementation, and it can be misleading if not disabled. (user can still hover, and they appear as normal btns).

- Search
	- changed the outer div to a form with role search to improve semantics
	- add aria-hidden on the loupe icon in the search bar
	- add aria-label to the search input to be able to give more context if necessary

- Search Result & Default Categories
	- render no result message in the preview section, when preview section is not rendered. previously the no result was only shown in the preview, but since the picker already supports hiding it, we don't want to loose the visual cue of "no emojis found"
	- add aria-label to the outer div around the all the moji categories
	- add aria-labelledby for each group of emojis pointing to the section header, and add role = group

chore(prettier): fix pretier

fix(picker): remove unused func, and add aria-expanded to skin btn

chore(pr): address pr comments
@torgeadelin torgeadelin force-pushed the feat/emoji-mart/more-a11y-fixes branch from c12ec94 to 33ab48e Compare August 30, 2024 13:52
@JanPodmajersky JanPodmajersky merged commit bed6a9a into slidoapp:main Sep 3, 2024
2 checks passed
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