Skip to content

Alert Dialog should use Dialog #3860

@cogwizzle

Description

@cogwizzle

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

  1. Go to 'https://paste.twilio.design/components/alert-dialog#default-alert-dialog'
  2. Click on 'Open Alert Dialog'.
  3. Inspect Element.

Paste Core Version

latest

Browser

Google Chrome 123.0.6312.124

Operating System

  • macOS
  • Windows
  • Linux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ComponentsRelated to the component library (core) of this systemStatus: WIPThis PR is still a work-in-progress. No need to review.Type: EnhancementChanges that don't affect the meaning of the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions