a11y-dialog

A very lightweight and flexible accessible modal dialog script. (by HugoGiraudel)

A11y-dialog Alternatives

Similar projects and alternatives to a11y-dialog

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better a11y-dialog alternative or higher similarity.

a11y-dialog reviews and mentions

Posts with mentions or reviews of a11y-dialog. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-14.
  • How would you improve this warning modal and add some red or yellow color to it?
    1 project | /r/css | 11 Sep 2022
    If it's a warning it should probably be role="alertdialog" rather than role="dialog". This will allow assistive devices to prioritize its content and trigger things like an alert sound. You probably also want to put keyboard focus on the least destructive action, which in your case would be the "save changes" button, rather than leaving keyboard focus above the close button. Here's a script by Kitty Giraudel that will do most of this for you, if you want.
  • New WebKit Features in Safari 15.4
    7 projects | news.ycombinator.com | 14 Mar 2022
    On that note, TIL about screen reader issues related to dialogs in general, including this built-in. Seems like the question is primarily around how to update the focus target from the "invoking element" to the dialog's content in a reader-friendly way. There's a linked post from the MDN docs with more detail https://www.scottohara.me/blog/2019/03/05/open-dialog.html#i.... They actually still recommend a custom implementation that's considered more robust when used with screen readers: https://github.com/KittyGiraudel/a11y-dialog. I'm glad there's a callout on the MDN docs as I would have assumed this dialog element is screen reader clean. Focus management is always a tough thing regardless.
  • HugoGiraudel/a11y-dialog: A lightweight and flexible accessible modal dialog
    1 project | news.ycombinator.com | 23 Feb 2021
  • A note from our sponsor - SurveyJS
    surveyjs.io | 26 Apr 2024
    With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →

Stats

Basic a11y-dialog repo stats
3
2,372
8.7
4 days ago

HugoGiraudel/a11y-dialog is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of a11y-dialog is JavaScript.


Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com