What fresh hell is THIS now? - Patrick Lauke
aria-hidden
for background elements and I don't see how doing that is fundamentally different from using inert
. I agree it's a better term but I think that's about it.
aria-modal
does exactly that and so I like it much more.
[shavaughn] Thanks for the info @starla175. Are you able to do this whole the page content is selected, or while the chrome UI is selected.
I'm using a galaxy S6 and one of the newer Samsung tablets. Both are running Android 7.0 with chrome. Maybe the behaviour has changed.
inert
gives you the ability to make an entire tree of elements non-focusable. In my opinion this is nicer than having to write your own javascript keyboard focus trap. You can just make <main>
inert and then focus is naturally trapped in the modal. Very little js required
Overlay must confine TAB and SHIFT-TAB to it's focusable children.
inert
cuz I want other browsers to get interested in it :)
aria-hidden
and tabindex="-1"
, what I was saying is I consider aria-modal="true"
as a better solution
[marcysutton] In my inbox today:
The most talkative member of your team last week was Scott O'Hara, with 94 messages. Nice work, Scott!
aria-modal
...don't you still have to prevent focusing of interactive controls in the background somehow, with a tool like inert
? The ARIA 1.1 spec calls this out: "When a modal element is displayed, authors should mark all other contents as inert (such as "inert subtrees" in HTML) if the ability to do so exists in the host language."
inert
element contains the last focusable elements on the page. I made a codepen, and if you try tabbing through it, you can see it still has tab stops for the elements in the hidden, inert modal: https://codepen.io/smhigley/pen/RVYMpE/