Skip to content

Accessibility improvements on the New Workspace modal #15809

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

Closed
wants to merge 3 commits into from

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Jan 17, 2023

Description

The X modal-closing button is focusable via subsequent keyboard navigation

Related Issue(s)

Fixes #

How to test

Open the preview environment, hit Cmd+O and try to navigate via Tab onto the closing button - and try to close the modal with it using Space or Enter.

Release Notes

NONE

Documentation

Build Options:

  • /werft with-github-actions
    Experimental feature to run the build with GitHub Actions (and not in Werft).
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@filiptronicek filiptronicek requested a review from a team January 17, 2023 17:42
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-ft-start-workspace-modal-a11y.1 because the annotations in the pull request description changed
(with .werft/ from main)

@filiptronicek filiptronicek marked this pull request as draft January 17, 2023 17:42
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Jan 17, 2023
@filiptronicek filiptronicek force-pushed the ft/start-workspace-modal-a11y branch from df17859 to 7ec4e6a Compare January 17, 2023 20:19
@filiptronicek
Copy link
Member Author

filiptronicek commented Jan 17, 2023

I have found an issue where you can escape the modal with your focus and with it interact with the page below it. I have discovered that the modal is using React contexts which I am still a bit confused about and unsure how to hook into it - how would I go about putting tabIndex="-1" to everything below the modal content?

cc @svenefftinge because you were the original author of the modal - hence you maybe know 😄

@selfcontained
Copy link
Contributor

selfcontained commented Jan 23, 2023

I have found an issue where you can escape the modal with your focus and with it interact with the page below it. I have discovered that the modal is using React contexts which I am still a bit confused about and unsure how to hook into it - how would I go about putting tabIndex="-1" to everything below the modal content?

cc @svenefftinge because you were the original author of the modal - hence you maybe know 😄

The focus not being constrained to the modal is something we can fix by updating our <Modal/> component to use react-modal rather than rendering inline like we are currently. It has quite a few modal accessibility considerations that should fix things like this, along with a slew of others. I've had that change in the back of my head for a bit but would be a good change for us to make when we have time.

@selfcontained
Copy link
Contributor

selfcontained commented Jan 23, 2023

/werft run

👍 started the job as gitpod-build-ft-start-workspace-modal-a11y.8
(with .werft/ from main)

@stale
Copy link

stale bot commented Feb 5, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Feb 5, 2023
@stale stale bot closed this Feb 19, 2023
@filiptronicek filiptronicek deleted the ft/start-workspace-modal-a11y branch January 24, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress meta: stale This issue/PR is stale and will be closed soon release-note-none size/M team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants