Skip to content

Keep focus on gallery button when selected#1153

Merged
demiankatz merged 1 commit intoUniversalViewer:devfrom
Saira-A:1073
Oct 22, 2024
Merged

Keep focus on gallery button when selected#1153
demiankatz merged 1 commit intoUniversalViewer:devfrom
Saira-A:1073

Conversation

@Saira-A
Copy link
Copy Markdown
Contributor

@Saira-A Saira-A commented Oct 21, 2024

Fixes #1073

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 21, 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 21, 2024 2:55pm

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, @Saira-A! I think this is probably a relic from the old days when the gallery control worked differently. This seems well worth doing, but I'll hold off on merging until @LanieOkorodudu has a chance to confirm.

Also, a related issue: I notice that if you do focus the gallery collapse button with the keyboard, you can only activate it with spacebar, but that causes the page to scroll down unexpectedly. We probably need to fix the accessibility of that control. That's a problem for a separate issue/PR; let me know if you'd like me to open an issue to document the situation!

@Saira-A
Copy link
Copy Markdown
Contributor Author

Saira-A commented Oct 21, 2024

Thanks, @Saira-A! I think this is probably a relic from the old days when the gallery control worked differently. This seems well worth doing, but I'll hold off on merging until @LanieOkorodudu has a chance to confirm.

Also, a related issue: I notice that if you do focus the gallery collapse button with the keyboard, you can only activate it with spacebar, but that causes the page to scroll down unexpectedly. We probably need to fix the accessibility of that control. That's a problem for a separate issue/PR; let me know if you'd like me to open an issue to document the situation!

Thanks @demiankatz! The collapse button issue is mentioned in #1084 and as you said there it's probably best to break it into smaller tasks

@demiankatz
Copy link
Copy Markdown
Contributor

Great, thanks for confirming that the issue is already documented!

@jamesmisson jamesmisson self-requested a review October 22, 2024 16:33
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 preview both look good to me.

@demiankatz demiankatz merged commit b42fb69 into UniversalViewer:dev Oct 22, 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.

3 participants