What fresh hell is THIS now? - Patrick Lauke
[m_j_robbins] Does anyone have nay good articles or general advice on when to use role="group"
or role="region"
?
I read this on w3.org
If a section is significant enough to warrant inclusion in the web page’s table of contents, the author SHOULD assign the section a role of region or a standard landmark role.
But what would you say is significant enough?
inert
polyfill to disable the rest of the page, and the modal has a title and a close button at the top, some content int the middle, and buttons on the bottom to close or perform an action, would it be reasonable to use <header>
, <main>
, and <footer>
elements to denote those sections? at first glance it would seem useful for screen readers to be able to jump to a particular section within the modal using those landmark roles
<main>
on a page, using inert
behind a modal would relax that requirement IMO because the other <main>
would be hidden from AT's. It reminds me of heading structure best practices, i.e. "only one h1 per page", which are also relaxed inside a modal to allow another h1 if the background content is hidden from assistive technologies. I heard about that best practice from folks at Deque, who generally know what they're doing. :)