Stabilize the ConfirmDialoc component #60027
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Components
/packages/components
[Type] Enhancement
A suggestion for improvement.
Description
See #59825 (comment)
The
ConfirmDialog
component was merged more than 2 years ago in #34153 but it is still marked as 'experimental'. Worth considering to stabilize it.To recap why it was introduced, see the related issues #16583 and #33937
window.confirm()
isn't an ideal experience as we're unable to customise the OK button to have a more descriptive label.The
ConfirmDialog
component seems to work well tor the editor needs. From an accessibility perspective, I think it only needs a lable for the dialot (the element with role=dialog) as it's currently unlabeled.Step-by-step reproduction instructions
N/A
To see an example of a
ConfirmDialog
in action:Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: