@@ -40,13 +40,13 @@ npm install @material/dialog
40
40
### HTML Structure
41
41
42
42
``` html
43
- <div class =" mdc-dialog"
44
- role =" alertdialog"
45
- aria-modal =" true"
46
- aria-labelledby =" my-dialog-title"
47
- aria-describedby =" my-dialog-content" >
43
+ <div class =" mdc-dialog" >
48
44
<div class =" mdc-dialog__container" >
49
- <div class =" mdc-dialog__surface" >
45
+ <div class =" mdc-dialog__surface"
46
+ role =" alertdialog"
47
+ aria-modal =" true"
48
+ aria-labelledby =" my-dialog-title"
49
+ aria-describedby =" my-dialog-content" >
50
50
<!-- Title cannot contain leading whitespace due to mdc-typography-baseline-top() -->
51
51
<h2 class =" mdc-dialog__title" id =" my-dialog-title" ><!--
52
52
--> Dialog Title<!--
@@ -114,13 +114,13 @@ dialog.listen('MDCDialog:opened', () => {
114
114
The Simple Dialog contains a list of potential actions. It does not contain buttons.
115
115
116
116
``` html
117
- <div class =" mdc-dialog"
118
- role =" alertdialog"
119
- aria-modal =" true"
120
- aria-labelledby =" my-dialog-title"
121
- aria-describedby =" my-dialog-content" >
117
+ <div class =" mdc-dialog" >
122
118
<div class =" mdc-dialog__container" >
123
- <div class =" mdc-dialog__surface" >
119
+ <div class =" mdc-dialog__surface"
120
+ role =" alertdialog"
121
+ aria-modal =" true"
122
+ aria-labelledby =" my-dialog-title"
123
+ aria-describedby =" my-dialog-content" >
124
124
<!-- Title cannot contain leading whitespace due to mdc-typography-baseline-top() -->
125
125
<h2 class =" mdc-dialog__title" id =" my-dialog-title" ><!--
126
126
--> Choose a Ringtone<!--
@@ -150,13 +150,13 @@ The Confirmation Dialog contains a list of choices, and buttons to confirm or ca
150
150
radio buttons (indicating single selection) or checkboxes (indicating multiple selection).
151
151
152
152
``` html
153
- <div class =" mdc-dialog"
154
- role =" alertdialog"
155
- aria-modal =" true"
156
- aria-labelledby =" my-dialog-title"
157
- aria-describedby =" my-dialog-content" >
153
+ <div class =" mdc-dialog" >
158
154
<div class =" mdc-dialog__container" >
159
- <div class =" mdc-dialog__surface" >
155
+ <div class =" mdc-dialog__surface"
156
+ role =" alertdialog"
157
+ aria-modal =" true"
158
+ aria-labelledby =" my-dialog-title"
159
+ aria-describedby =" my-dialog-content" >
160
160
<!-- Title cannot contain leading whitespace due to mdc-typography-baseline-top() -->
161
161
<h2 class =" mdc-dialog__title" id =" my-dialog-title" ><!--
162
162
--> Choose a Ringtone<!--
0 commit comments