-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
breaking changeIntroduces changes that are not backward compatible.Introduces changes that are not backward compatible.priority: importantThis change can make a difference.This change can make a difference.scope: dialogChanges related to the dialog.Changes related to the dialog.
Milestone
Description
Summary 💡
DialogTitle should be flatter
Examples 🌈
Motivation 🔦
- Aligning items of the title
<DialogTitle style={ display: 'flex', alignItems: 'center' }> <SomeIcon /> My Title </DialogTitle>
- fewer DOM elements -> fewer brittle element selectors
It is possible but requires targetting nested elements. disableTypography is not helpful since then we wouldn't render a heading element.
We could leverage aria but this would go against rule 1 of aria (don't use aria): <DialogTitle disableTypography role="heading" aria-level="2" className={variantH2Styles} />
oliviertassinari
Metadata
Metadata
Assignees
Labels
breaking changeIntroduces changes that are not backward compatible.Introduces changes that are not backward compatible.priority: importantThis change can make a difference.This change can make a difference.scope: dialogChanges related to the dialog.Changes related to the dialog.