Add suppress checkboxes and better ARIA roles for dialogs.
Review Request #14649 — Created Oct. 24, 2025 and submitted
It's common for some types of dialogs to have a suppression checkbox,
such as "Do not ask again." To ensure there's a standard approach for
this, dialogs can now havecanSuppress=trueset. This will place a
checkbox in the secondary actions area, at the far left.The default text will be "Do not ask again," but this can be customized
by settingsuppressText=.It's up to the caller to determine how to suppress. The dialog doesn't
control any of this. It does provide the result of the checkbox though
as anisSuppressedproperty.This will be used for upcoming confirmation utility dialogs.
Along with this, the ARIA role for modal dialogs has been updated to use
alertdialog. This will announce the dialog to screen readers, and is
the correct choice when popping up a modal dialog that requires
attention, rather than a utility dialog that is simply on screen.
Tested with and without suppression checkboxes, and with custom
label text.
| Summary | ID |
|---|---|
| c936311c0af0c07840f4cbe3249c4fc80ec38d66 |
| Description | From | Last Updated |
|---|---|---|
|
I think I'd prefer if this was named something like isSuppressChecked. isSuppressed makes me think the dialog will handle the … |
|
|
|
Seems like this should be id= or name=. This also needs the ink-c-dialog__suppress class to match the styling/docs elsewhere. |
|
|
|
What does this mean? |
|
|
|
This should be __suppress, to match the comment. |
|
|
|
This should have defaults for canSuppress and suppressText |
|
- Change Summary:
-
- Renamed the accessor to
isSuppressChecked(). - Added the missing/fixed
id=andclass=for the input ID (ended up in /r/14689/). - Fixed the selector for the suppress checkbox.
- Renamed the accessor to
- Commits:
-
Summary ID af215fdc1c682e555c1afd3a8cd77227f52cb0cc c936311c0af0c07840f4cbe3249c4fc80ec38d66