Most alerts don't need titles
most-alerts-dont-need-titles
Most alerts don't need titles — summarize in a sentence or two (question or statement tied to the buttons). Use `role="alertdialog"`. Title-bar alerts only for high-risk (e.g. potential loss of connectivity). Users should understand the choices from title and button text alone.
Description
Most alerts do not need titles—summarize in a sentence or two tied to the buttons, and use `role="alertdialog"`. Reserve a title bar for high-risk cases such as potential loss of connectivity. People should understand choices from title (if any) and button text alone. Fail for a title bar on a non-high-risk alert, a missing alertdialog role, or choices that cannot be understood from title and buttons.
When to use
Designing alert dialogs for ordinary confirmations versus high-risk warnings.
Not when
Not for non-alert modal editors that need a lasting working title.
Agent hint
Omit title bars on ordinary alerts; reserve titles for high-risk; use alertdialog.
Ordinary alerts have no title bar; copy is a sentence or two tied to the buttons; `role="alertdialog"`. Title-bar only for high-risk. Choices are understandable from title (if any) and button text alone.
Title-bar on a non-high-risk alert; missing alertdialog role; choices that cannot be understood from title + buttons.
Citations
MUI — Dialog
https://mui.com/material-ui/react-dialog/