-
Notifications
You must be signed in to change notification settings - Fork 119
Alert Dialog should use Dialog #3860
Copy link
Copy link
Open
Labels
Area: ComponentsRelated to the component library (core) of this systemRelated to the component library (core) of this systemStatus: WIPThis PR is still a work-in-progress. No need to review.This PR is still a work-in-progress. No need to review.Type: EnhancementChanges that don't affect the meaning of the codeChanges that don't affect the meaning of the code
Metadata
Metadata
Assignees
Labels
Area: ComponentsRelated to the component library (core) of this systemRelated to the component library (core) of this systemStatus: WIPThis PR is still a work-in-progress. No need to review.This PR is still a work-in-progress. No need to review.Type: EnhancementChanges that don't affect the meaning of the codeChanges that don't affect the meaning of the code
Description
When I use the alert dialog component, I expect that it will utilize the built in dialog element, instead it is using a bunch of divs in order to create the a dialog.
Link to Reproduction
https://paste.twilio.design/components/alert-dialog
Steps to reproduce
Paste Core Version
latest
Browser
Google Chrome 123.0.6312.124
Operating System
Additional Information
Using the semantic elements moving forward will improve the accessibility of the applications that use this library. Potentially we should use a div if dialog does not exist, but if it does we should use dialog.