-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Adds a tabindex to the right info panel's main element so it can be f… #1171
Conversation
…ocused regardless of whether it has focus-able content
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Looks good to me! A couple of additions :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll give this a more thorough test after @Saira-A's suggestions have been discussed, but in the meantime, I had one more small question (see below).
src/content-handlers/iiif/modules/uv-moreinforightpanel-module/MoreInfoRightPanel.ts
Outdated
Show resolved
Hide resolved
… make elements articles so they'll be readable by screenreaders.
I've updated the elements to be articles and changed it so that whenever the size changes the heights will be compared, and set things accordingly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, that works as expected. For the more info dialogue, it might be more intuitive to focus on the metadata before the close button rather than after it since the button is underneath, but I'm not sure which approach would be better from an accessibility perspective.
I agree that it might be better to focus the top of the dialog instead of the bottom, though I could live with this if a more robust solution is impractical. I wonder if this behavior is related to #1163. Could it be that if we add |
@LlGC-jop, just checking in since you've been active on other PRs, but this one has been quiet for a while: any thoughts on the above comment? (If not, no worries -- just making sure this didn't get lost!) |
Sorry @demiankatz, been getting a lot of notification emails and only just figured out how to reduce it to ones relevant to my issues/PRs :) #1163 includes tabindex=0 as a selector so I think that'll cover any instance where we want an article element to be focusable, or any other element for that matter. I think we should create a new issue to cover all dialogues and which element has focus on open. This would be more specific and have less overlap with the right panel side of things in this issue. Perhaps a data attribute on the dialogue to specify an ID to focus on, then the main Dialogue.ts file can check for that and set focus on open? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is safe to merge, then! I've opened #1189 to capture the idea about specifying preferred focus within dialogues with a data element or equivalent.
…ocused regardless of whether it has focus-able content
Fixes #1069