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

Use <dialog> for the export menu for better keyboard accessibility #2750

Merged
merged 5 commits into from
Dec 13, 2023

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Dec 12, 2023

The export menu used to be an <aside>, using inert and styling when the menu is toggled. This PR changes it to <dialog> with open (not modal), which is better semantics that will also make sure that the correct tabbing behaviour is achieved. The menu is also closed when focus is lost.

This matches the expected behaviour, like in https://webaim.org/resources/htmlcheatsheet/ or https://webaim.org/techniques/keyboard/

In the video below, I use the Tab, Enter and Escape keys:

Schermopname.2023-12-12.om.10.11.18.mov

@fonsp fonsp added frontend Concerning the HTML editor accessibility Accessibility improvements of the frontend, like screen reader support and internationalization labels Dec 12, 2023
Copy link
Contributor

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="export-menu-dialog-semantics")
julia> using Pluto

@fonsp fonsp merged commit 461f398 into main Dec 13, 2023
4 checks passed
@fonsp fonsp deleted the export-menu-dialog-semantics branch December 13, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Accessibility improvements of the frontend, like screen reader support and internationalization frontend Concerning the HTML editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant