-
Notifications
You must be signed in to change notification settings - Fork 27
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
Addition: inert attribute mappings #410
Merged
Merged
Changes from 8 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8c6db4c
Addition: inert attribute mappings
scottaohara f2f6bec
Merge branch 'gh-pages' into inert-mapping
scottaohara e2a580d
Merge branch 'gh-pages' into inert-mapping
scottaohara 58d9b57
Merge branch 'gh-pages' into inert-mapping
scottaohara 7515ee4
update comment per feedback review
scottaohara b460767
Merge branch 'gh-pages' into inert-mapping
scottaohara f4a403d
rework inert comments
scottaohara fd09eef
Merge branch 'gh-pages' into inert-mapping
scottaohara ff9250f
Merge branch 'gh-pages' into inert-mapping
scottaohara 7763687
Merge branch 'gh-pages' into inert-mapping
scottaohara 20b4c54
Merge branch 'gh-pages' into inert-mapping
scottaohara 7e5d42f
update inert mapping per review comments
scottaohara ba37b76
Update index.html
scottaohara ed1260d
Merge branch 'gh-pages' into inert-mapping
scottaohara a7f0053
add changelog entry
scottaohara f362e5e
Merge branch 'gh-pages' into inert-mapping
scottaohara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
How should a
<div role="dialog">
or a<div role="menu">
achieve the same?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.
possibly by using the popover attribute, though i don't believe that functionality is available right now. we should open an issue for that separate from this.
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.
As I read it, popover is not intended for modals like
<div role="dialog" aria-modal="true">
. The Dialog API is the only option for a modal. Regardless, I agree that's addressable as a separate issue.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.
Right, ARIA would need a way of unhiding a child, see #410 (comment)
I can file a spec issue.
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.
You had filed one already :) w3c/aria#1256
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'm now confused what you mean with your first message in this thread.
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.
dialog is the only element, when shown as a modal, which can escape its parent inert element and become re-exposed in the top layer.
so, per James's question, there is presently no way for someone to invoke an accessible ARIA dialog (modal or otherwise), or a menu if someone wanted to trap focus/screen readers in those elements, if it was contained within an inert container.
though popover is not allowed for HTML modal dialogs, the attribute does send an element to the top layer, so my mention of the attribute is that it could be a way for someone to do something like:
somewhere in some github thread that i've since lost track of, when implementation of inert was still being discussed, I had mentioned it would be great if
inert=false
would un-inert a child node of an inert parent. I don't understand the rational as to why that wasn't entertained further, other than potential implementation complexity. But back to James's original question, because of that decision there is no way to do what James was asking with HTML now, andaria-hidden=false
wouldn't/shouldn't be expected to be a way to achieve this, as even if it did re-expose a part of the inert content, by itself it wouldn't undo the browser preventing click/focus to go to the aria-hidden=false content (as applicable if it were to consist of actionable elements)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.
marking this thread as unresolved just to make sure this related discussion about inert/aria-hidden=false isn't missed by those being directed to this issue.
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.
Coming in very late, and obviously this has no bearing on the outcome of this PR, but I talked a bit about the rationale here: https://www.igalia.com/chats/alice-and-rob (you can search for "one way" in the transcript rather than listen to the whole rambling conversation).
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.
@alice thank you for the link and background!