Skip to content

Fixes Accessibility issue: backwards tabbing required to access langu…#1133

Merged
demiankatz merged 2 commits intoUniversalViewer:devfrom
LlGC-jop:fix-issue-1071
Oct 17, 2024
Merged

Fixes Accessibility issue: backwards tabbing required to access langu…#1133
demiankatz merged 2 commits intoUniversalViewer:devfrom
LlGC-jop:fix-issue-1071

Conversation

@LlGC-jop
Copy link
Copy Markdown
Contributor

…age settings #1071

Fixes #1071 by setting focus on the first select or input when the dialogue opens

I've not done anything to trap focus etc. as that's beyond the scope of this specific issue, and more involved than I think we have time for in the sprint.

A long-term solution would be to use a <dialog> element as I think that covers the needed a11y requirements, but we can address that in a separate issue / future sprint.

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2024 1:03pm

Copy link
Copy Markdown
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @LlGC-jop -- this solution seems reasonable (at least for the short term -- as you say, there may be better long-term approaches).

Just one observation: this PR includes a lot of changes that are unrelated to the actual fix at hand. Is it possible you have some IDE settings that are automatically changing the code? It might be good to undo some of these things so it's easier to see the intention of the commit.

Copy link
Copy Markdown
Contributor

@jamesmisson jamesmisson left a comment

Choose a reason for hiding this comment

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

Code and Vercel reviewed. Looks good with Demian's changes, thanks Jonathan

Copy link
Copy Markdown
Collaborator

@LanieOkorodudu LanieOkorodudu left a comment

Choose a reason for hiding this comment

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

I tested this in Vercel app and looks good on my end too. Thanks again @LlGC-jop

@LlGC-jop
Copy link
Copy Markdown
Contributor Author

@demiankatz I've committed a change to undo the auto-formatting.

Copy link
Copy Markdown
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @LanieOkorodudu and @LlGC-jop!

@demiankatz demiankatz merged commit 88178e3 into UniversalViewer:dev Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Community Sprint COMPLETED

Development

Successfully merging this pull request may close these issues.

Accessibility issue: backwards tabbing required to access language settings

4 participants