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

Keyboard controls and custom alt/title texts #83

Closed
Cjschmidt opened this issue Aug 25, 2020 · 4 comments
Closed

Keyboard controls and custom alt/title texts #83

Cjschmidt opened this issue Aug 25, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Cjschmidt
Copy link

We are currently using this package on websites which needs to be WCAG2.1 compliant. In order to be compliant, you need to be able to control everything with keyboard-only.

Is it possible to add keyboard control to this package? Right now you can't select or cycle trough the emojis using keyboard only.

Also is it possible to add custom titles/alt texts to the emojis?

@serebrov
Copy link
Owner

serebrov commented Sep 6, 2020

@Cjschmidt I think both keyboard control and titles / alt texts are possible.

It would be good to start with the specification: how exactly the keyboard control would work? which key combinations should be used? how it would behave if there are several emoji components on the page?

Same for titles / alt texts - how would the configuration look like? do you mean to specify custom titles for all emojis (there are many of them) or just override the defaults?

@serebrov serebrov added the enhancement New feature or request label Sep 7, 2020
@mathieutu
Copy link

mathieutu commented Feb 4, 2021

Hi.
I also would like to add keyboard navigation in picker.

Here you have both example from native mac picker, and slack one (which is the most perfect picker I've seen).

Thanks!

2021-02-04 10 43 52

2021-02-04 10 46 33

@serebrov
Copy link
Owner

Related issue: #104 (with a suggested reference change from the original React emoji-mart library), I can start with that and see if it would also solve this request.

@serebrov
Copy link
Owner

I've just published version 10.0.0 with keyboard controls and accessibility improvements (use button tags for clickable emojis, add aria- properties).

Keyboard controls are activated when the cursor is in the search field - emoji can be selected with arrow keys and confirmed with Enter (the select event is emmited by picker, same as when the emoji is clicked with mouse).

@serebrov serebrov closed this as completed May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants