[Discussion] New chance for <dialog>?
See original GitHub issueScott O’Hara writes:
It’s now March of 2022, and Webkit 15.4 has shipped the
<dialog>
element, as well as Firefox 98. All major browsers now support the<dialog>
element, and that’s really exciting.Please note that you should definitely start (continue) tinkering with the
<dialog>
element. There are still ongoing discussions about some aspects of the<dialog>
element, but things are looking promising.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Issues · KittyGiraudel/a11y-dialog - GitHub
A very lightweight and flexible accessible modal dialog script. - Issues · KittyGiraudel/a11y-dialog. ... [Discussion] New chance for <dialog>?
Read more >Dialogue, Discussion and Debate: Why you need to know the ...
We miss the chance to really listen to each other, to deeply understand another's perspective, to see a larger pattern, a more cohesive...
Read more >Using Oral Language and Dialogue in YOUR Classroom
Students must discuss with one another their feelings/reasonings to determine their places in the continuum. 3. Work in Groups to Discuss Class-Generated or” ......
Read more >Deliberative Dialogue Discussion Topics and Prompts
Address Biases by Giving Everyone a Fair Chance—through strategies including increasing minimum wage, eliminating standardized testing, making community college.
Read more >2. Getting Started-Steps in Organizing a Dialogue
To bring our kids together to reduce the chance of violence. ... Another option is to pair existing community groups for a dialogue...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello and thank you for asking! 👋
Things look promising and hopefully we’ll reach a stage where the
<dialog>
element is widely supported and consistent enough that we can put a11y-dialog to sleep. But this is not quite the case just yet.And there are still reasons to use a11y-dialog (or a similar library):
<dialog>
worked without JavaScript, which it doesn’t. So if you want a dialog that looks the way you expect everywhere, then a lib like a11y-dialog remains the way to go.<dialog>
element. I guess a polyfill might be better in a case like that, but also maybe not. Depends on the polyfill I suppose. Might as well use the same lib for everything.alertdialog
support. There is no plan for the<dialog>
element to supportrole="alertdialog"
as far as I’m aware, so if that’s a need, then a11y-dialog remains a good option.<dialog>
element doesn’t come with an event API, so you cannot react to it being open or closed.For what it’s worth, the very next paragraph after the one you’ve quoted states:
So we’re not quite there yet, and we might never be. That being said, once things are clean and shiny all around, I’ll happily update the a11y-dialog documentation to explain when it’s worth using over the native
<dialog>
element.Will be added to the documentation in v8.