@aurodesignsystem/auro-dialog 4.2.2 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/design.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { initSizeOptionsExample } from "../apiExamples/size-options";
2
2
  import { initDecoupledExample } from "../apiExamples/decoupled";
3
- import { initAccessibilityUnformattedHeaderExample } from "../apiExamples/accessibility-unformatted-header";
4
3
 
5
4
  import "../src/registered";
6
5
 
@@ -11,7 +10,6 @@ export function initExamples(initCount) {
11
10
  try {
12
11
  initSizeOptionsExample();
13
12
  initDecoupledExample();
14
- initAccessibilityUnformattedHeaderExample();
15
13
  } catch (_err) {
16
14
  if (initCount <= 20) {
17
15
  // setTimeout handles issue where content is sometimes loaded after the functions get called
package/demo/design.md CHANGED
@@ -2,38 +2,37 @@
2
2
  <div class="contentWrapper">
3
3
  <nav>
4
4
  <auro-nav anchorNavContent=".scrollWrapper">
5
- <span slot="mobileToggleCollapsed">View More</span>
6
- <span slot="mobileToggleExpanded">View Less</span>
5
+ <span slot="mobileToggleCollapsed">View more</span>
6
+ <span slot="mobileToggleExpanded">View less</span>
7
7
  <auro-anchorlink fluid href="#anatomy">Anatomy</auro-anchorlink>
8
- <auro-anchorlink fluid href="#dialogVsModal">Dialog vs. Modal</auro-anchorlink>
8
+ <auro-anchorlink fluid href="#dialogVsModal">Dialog vs. modal</auro-anchorlink>
9
9
  <auro-anchorlink fluid href="#sizes">Sizes</auro-anchorlink>
10
- <auro-anchorlink fluid href="#unformatted">Unformatted &amp; Padding</auro-anchorlink>
11
10
  </auro-nav>
12
11
  </nav>
13
12
  <div class="mainContent">
14
13
  <div class="scrollWrapper">
15
- <auro-header level="2" id="anatomy">Component Anatomy</auro-header>
14
+ <auro-header level="2" id="anatomy">Component anatomy</auro-header>
16
15
  <p>A formatted <code>&lt;auro-dialog&gt;</code> is composed of three stacked regions, each backed by a named slot:</p>
17
16
  <ul>
18
- <li><strong>Header</strong> (<code>header</code> slot) — a short, descriptive title. It is rendered as the dialog's labelled heading and provides the dialog's accessible name.</li>
19
- <li><strong>Content</strong> (<code>content</code> slot) — the body of the dialog. Keep it focused on a single task or message.</li>
20
- <li><strong>Footer</strong> (<code>footer</code> slot) — reserved for action buttons. Place the primary action here; for <code>modal</code> dialogs this region must contain the control that dismisses the dialog.</li>
17
+ <li><strong>Header</strong> (<code>header</code> slot): A short, descriptive title. It's rendered as the dialog's labelled heading and provides the dialog's accessible name.</li>
18
+ <li><strong>Content</strong> (<code>content</code> slot): The body of the dialog. Keep it focused on a single task or message.</li>
19
+ <li><strong>Footer</strong> (<code>footer</code> slot): Reserved for action buttons. Place the primary action here. For <code>modal</code> dialogs, this region must contain the control that dismisses the dialog.</li>
21
20
  </ul>
22
- <p>A non-modal dialog also renders a close (&times;) button in the top corner of the header. The dialog is centered over a dimmed backdrop that overlays the rest of the page.</p>
23
- <auro-header level="2" id="dialogVsModal">Dialog vs. Modal</auro-header>
21
+ <p>A non-modal dialog also renders a close (&times;) button in the top corner of the header. On desktop, the dialog appears centered horizontally near the top of the page, over a dimmed backdrop. On mobile, it slides up from the bottom of the screen.</p>
22
+ <auro-header level="2" id="dialogVsModal">Dialog vs. modal</auro-header>
24
23
  <p>The component supports two behavioral modes. Choosing between them is the most important design decision when using <code>&lt;auro-dialog&gt;</code>.</p>
25
24
  <auro-header level="3" id="dialogMode">Dialog (non-modal)</auro-header>
26
- <p>The default mode. The user is presented with content they should attend to, but can dismiss it passively — via the close button, the <code>Esc</code> key, or by clicking the backdrop outside the dialog. Use this for supplemental information the user can accept or ignore.</p>
25
+ <p>The default mode. The user is presented with content they should attend to, but can dismiss it passively by using the close button, pressing the <code>Esc</code> key, or clicking the backdrop outside the dialog. Use this for supplemental information the user can accept or ignore.</p>
27
26
  <auro-header level="3" id="modalMode">Modal (blocking)</auro-header>
28
- <p>Enabled with the <code>modal</code> attribute. The user is locked into the content and must take an explicit action to continue — passive dismissal is disabled. Use this sparingly, only when the user genuinely must make a decision or acknowledge something before proceeding. A modal dialog must always provide an action in its footer, since no close button is rendered.</p>
27
+ <p>Enabled with the <code>modal</code> attribute. The user is locked into the content and must take an explicit action to continue, because passive dismissal is disabled. Use this sparingly, only when the user genuinely must make a decision or acknowledge something before proceeding. A modal dialog must always provide an action in its footer, since no close button is rendered.</p>
29
28
  <div class="note"><strong>Note:</strong> Auro follows the <auro-hyperlink href="https://www.nngroup.com/articles/modal-nonmodal-dialog/" target="_blank">Nielsen Norman Group</auro-hyperlink> guidance on dialog and modal use. Prefer a non-modal dialog unless blocking the user is truly justified.</div>
30
29
  <auro-header level="2" id="sizes">Sizes</auro-header>
31
- <p>The dialog supports three sizes — <code>sm</code>, <code>md</code>, and <code>lg</code> — with <code>lg</code> as the default.</p>
30
+ <p>The dialog supports three sizes: <code>sm</code>, <code>md</code>, and <code>lg</code>. The default is <code>lg</code>.</p>
32
31
  <ul>
33
- <li><strong>Desktop</strong> — size sets the width of the dialog; height is driven by content up to a maximum of 80% of the viewport.</li>
34
- <li><strong>Mobile</strong> — size sets the maximum viewport height the dialog occupies; width is fixed at 100%.</li>
32
+ <li><strong>Desktop</strong>: Size sets the maximum width of the dialog. On wide screens, <code>md</code> and <code>lg</code> reach the same maximum width, and <code>sm</code> stays narrower. Height is driven by content, up to a maximum of 80% of the viewport.</li>
33
+ <li><strong>Mobile</strong>: Size sets the maximum viewport height the dialog occupies. Width is fixed at 100%.</li>
35
34
  </ul>
36
- <p>Sizes can be decoupled between breakpoints: adding <code>lg</code> in addition to <code>sm</code> or <code>md</code> forces the <code>lg</code> size on mobile while retaining the smaller size on desktop.</p>
35
+ <p>Sizes can be decoupled between breakpoints. Adding <code>lg</code> in addition to <code>sm</code> or <code>md</code> forces the <code>lg</code> size on mobile while retaining the smaller size on desktop.</p>
37
36
  <div class="exampleWrapper">
38
37
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/size-options.html) -->
39
38
  <!-- The below content is automatically added from ./../apiExamples/size-options.html -->
@@ -43,7 +42,7 @@
43
42
  <auro-button id="openSmallSize">Open small dialog</auro-button>
44
43
  </div>
45
44
  <auro-dialog id="defaultSizeDialog">
46
- <span slot="header">Default Dialog</span>
45
+ <span slot="header">Default dialog</span>
47
46
  <div slot="content">
48
47
  <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
49
48
  <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
@@ -56,11 +55,11 @@
56
55
  </ul>
57
56
  </div>
58
57
  <div slot="footer">
59
- <auro-button secondary id="closeDefaultSize">Close</auro-button>
58
+ <auro-button variant="secondary" id="closeDefaultSize">Close</auro-button>
60
59
  </div>
61
60
  </auro-dialog>
62
61
  <auro-dialog id="mediumSizeDialog" md>
63
- <span slot="header">Medium Dialog</span>
62
+ <span slot="header">Medium dialog</span>
64
63
  <div slot="content">
65
64
  <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
66
65
  <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
@@ -73,11 +72,11 @@
73
72
  </ul>
74
73
  </div>
75
74
  <div slot="footer">
76
- <auro-button secondary id="closeMediumSize">Close</auro-button>
75
+ <auro-button variant="secondary" id="closeMediumSize">Close</auro-button>
77
76
  </div>
78
77
  </auro-dialog>
79
78
  <auro-dialog id="smallSizeDialog" sm>
80
- <span slot="header">Small Dialog</span>
79
+ <span slot="header">Small dialog</span>
81
80
  <div slot="content">
82
81
  <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
83
82
  <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
@@ -90,7 +89,7 @@
90
89
  </ul>
91
90
  </div>
92
91
  <div slot="footer">
93
- <auro-button secondary id="closeSmallSize">Close</auro-button>
92
+ <auro-button variant="secondary" id="closeSmallSize">Close</auro-button>
94
93
  </div>
95
94
  </auro-dialog>
96
95
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -104,9 +103,9 @@
104
103
  &lt;auro-button id="openDefaultSize"&gt;Open default dialog&lt;/auro-button&gt;
105
104
  &lt;auro-button id="openMediumSize"&gt;Open medium dialog&lt;/auro-button&gt;
106
105
  &lt;auro-button id="openSmallSize"&gt;Open small dialog&lt;/auro-button&gt;
107
- &lt;/div&gt;
108
- &lt;auro-dialog id="defaultSizeDialog"&gt;
109
- &lt;span slot="header"&gt;Default Dialog&lt;/span&gt;
106
+ &lt;/div&gt;
107
+ &#10;&lt;auro-dialog id="defaultSizeDialog"&gt;
108
+ &lt;span slot="header"&gt;Default dialog&lt;/span&gt;
110
109
  &lt;div slot="content"&gt;
111
110
  &lt;p&gt;When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See &lt;auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank"&gt;alaskaair.com/bagrules&lt;/auro-hyperlink&gt; for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.&lt;/p&gt;
112
111
  &lt;p&gt;Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.&lt;/p&gt;
@@ -119,11 +118,11 @@
119
118
  &lt;/ul&gt;
120
119
  &lt;/div&gt;
121
120
  &lt;div slot="footer"&gt;
122
- &lt;auro-button secondary id="closeDefaultSize"&gt;Close&lt;/auro-button&gt;
121
+ &lt;auro-button variant="secondary" id="closeDefaultSize"&gt;Close&lt;/auro-button&gt;
123
122
  &lt;/div&gt;
124
- &lt;/auro-dialog&gt;
125
- &lt;auro-dialog id="mediumSizeDialog" md&gt;
126
- &lt;span slot="header"&gt;Medium Dialog&lt;/span&gt;
123
+ &lt;/auro-dialog&gt;
124
+ &#10;&lt;auro-dialog id="mediumSizeDialog" md&gt;
125
+ &lt;span slot="header"&gt;Medium dialog&lt;/span&gt;
127
126
  &lt;div slot="content"&gt;
128
127
  &lt;p&gt;When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See &lt;auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank"&gt;alaskaair.com/bagrules&lt;/auro-hyperlink&gt; for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.&lt;/p&gt;
129
128
  &lt;p&gt;Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.&lt;/p&gt;
@@ -136,11 +135,11 @@
136
135
  &lt;/ul&gt;
137
136
  &lt;/div&gt;
138
137
  &lt;div slot="footer"&gt;
139
- &lt;auro-button secondary id="closeMediumSize"&gt;Close&lt;/auro-button&gt;
138
+ &lt;auro-button variant="secondary" id="closeMediumSize"&gt;Close&lt;/auro-button&gt;
140
139
  &lt;/div&gt;
141
- &lt;/auro-dialog&gt;
142
- &lt;auro-dialog id="smallSizeDialog" sm&gt;
143
- &lt;span slot="header"&gt;Small Dialog&lt;/span&gt;
140
+ &lt;/auro-dialog&gt;
141
+ &#10;&lt;auro-dialog id="smallSizeDialog" sm&gt;
142
+ &lt;span slot="header"&gt;Small dialog&lt;/span&gt;
144
143
  &lt;div slot="content"&gt;
145
144
  &lt;p&gt;When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See &lt;auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank"&gt;alaskaair.com/bagrules&lt;/auro-hyperlink&gt; for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.&lt;/p&gt;
146
145
  &lt;p&gt;Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.&lt;/p&gt;
@@ -153,9 +152,9 @@
153
152
  &lt;/ul&gt;
154
153
  &lt;/div&gt;
155
154
  &lt;div slot="footer"&gt;
156
- &lt;auro-button secondary id="closeSmallSize"&gt;Close&lt;/auro-button&gt;
155
+ &lt;auro-button variant="secondary" id="closeSmallSize"&gt;Close&lt;/auro-button&gt;
157
156
  &lt;/div&gt;
158
- &lt;/auro-dialog&gt;</code></pre>
157
+ &lt;/auro-dialog&gt;</code></pre>
159
158
  <!-- AURO-GENERATED-CONTENT:END -->
160
159
  </auro-accordion>
161
160
  <auro-header level="3" id="mixedSizes">Mixed (decoupled) sizes</auro-header>
@@ -163,11 +162,11 @@
163
162
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/decoupled.html) -->
164
163
  <!-- The below content is automatically added from ./../apiExamples/decoupled.html -->
165
164
  <div>
166
- <auro-button id="openSmLg">Open [sm lg] dialog</auro-button>
167
- <auro-button id="openMdLg">Open [md lg] dialog</auro-button>
165
+ <auro-button id="openSmLg">Open small dialog (large on mobile)</auro-button>
166
+ <auro-button id="openMdLg">Open medium dialog (large on mobile)</auro-button>
168
167
  </div>
169
168
  <auro-dialog id="smLgDialog" sm lg>
170
- <span slot="header">Small Modal Dialog</span>
169
+ <span slot="header">Small dialog</span>
171
170
  <div slot="content">
172
171
  <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
173
172
  <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
@@ -182,12 +181,12 @@
182
181
  <div slot="footer">
183
182
  <auro-button id="closeSmLg">
184
183
  I understand
185
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
184
+ <auro-icon category="interface" name="check-lg" appearance="inverse"></auro-icon>
186
185
  </auro-button>
187
186
  </div>
188
187
  </auro-dialog>
189
188
  <auro-dialog id="mdLgDialog" md lg>
190
- <span slot="header">Medium Modal Dialog</span>
189
+ <span slot="header">Medium dialog</span>
191
190
  <div slot="content">
192
191
  <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
193
192
  <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
@@ -202,7 +201,7 @@
202
201
  <div slot="footer">
203
202
  <auro-button id="closeMdLg">
204
203
  I understand
205
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
204
+ <auro-icon category="interface" name="check-lg" appearance="inverse"></auro-icon>
206
205
  </auro-button>
207
206
  </div>
208
207
  </auro-dialog>
@@ -214,11 +213,11 @@
214
213
  <!-- The below code snippet is automatically added from ./../apiExamples/decoupled.html -->
215
214
 
216
215
  <pre class="language-html"><code class="language-html">&lt;div&gt;
217
- &lt;auro-button id="openSmLg"&gt;Open [sm lg] dialog&lt;/auro-button&gt;
218
- &lt;auro-button id="openMdLg"&gt;Open [md lg] dialog&lt;/auro-button&gt;
219
- &lt;/div&gt;
220
- &lt;auro-dialog id="smLgDialog" sm lg&gt;
221
- &lt;span slot="header"&gt;Small Modal Dialog&lt;/span&gt;
216
+ &lt;auro-button id="openSmLg"&gt;Open small dialog (large on mobile)&lt;/auro-button&gt;
217
+ &lt;auro-button id="openMdLg"&gt;Open medium dialog (large on mobile)&lt;/auro-button&gt;
218
+ &lt;/div&gt;
219
+ &#10;&lt;auro-dialog id="smLgDialog" sm lg&gt;
220
+ &lt;span slot="header"&gt;Small dialog&lt;/span&gt;
222
221
  &lt;div slot="content"&gt;
223
222
  &lt;p&gt;When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See &lt;auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank"&gt;alaskaair.com/bagrules&lt;/auro-hyperlink&gt; for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.&lt;/p&gt;
224
223
  &lt;p&gt;Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.&lt;/p&gt;
@@ -233,12 +232,12 @@
233
232
  &lt;div slot="footer"&gt;
234
233
  &lt;auro-button id="closeSmLg"&gt;
235
234
  I understand
236
- &lt;auro-icon category="interface" name="check-lg" emphasis appearance="inverse"&gt;&lt;/auro-icon&gt;
235
+ &lt;auro-icon category="interface" name="check-lg" appearance="inverse"&gt;&lt;/auro-icon&gt;
237
236
  &lt;/auro-button&gt;
238
237
  &lt;/div&gt;
239
- &lt;/auro-dialog&gt;
240
- &lt;auro-dialog id="mdLgDialog" md lg&gt;
241
- &lt;span slot="header"&gt;Medium Modal Dialog&lt;/span&gt;
238
+ &lt;/auro-dialog&gt;
239
+ &#10;&lt;auro-dialog id="mdLgDialog" md lg&gt;
240
+ &lt;span slot="header"&gt;Medium dialog&lt;/span&gt;
242
241
  &lt;div slot="content"&gt;
243
242
  &lt;p&gt;When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See &lt;auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank"&gt;alaskaair.com/bagrules&lt;/auro-hyperlink&gt; for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.&lt;/p&gt;
244
243
  &lt;p&gt;Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.&lt;/p&gt;
@@ -253,52 +252,10 @@
253
252
  &lt;div slot="footer"&gt;
254
253
  &lt;auro-button id="closeMdLg"&gt;
255
254
  I understand
256
- &lt;auro-icon category="interface" name="check-lg" emphasis appearance="inverse"&gt;&lt;/auro-icon&gt;
255
+ &lt;auro-icon category="interface" name="check-lg" appearance="inverse"&gt;&lt;/auro-icon&gt;
257
256
  &lt;/auro-button&gt;
258
257
  &lt;/div&gt;
259
- &lt;/auro-dialog&gt;</code></pre>
260
- <!-- AURO-GENERATED-CONTENT:END -->
261
- </auro-accordion>
262
- <auro-header level="2" id="unformatted">Unformatted &amp; Responsive Padding</auro-header>
263
- <p>For freeform use cases that still want the dialog's behavior and tooling, the <code>unformatted</code> property renders an edge-to-edge window with no built-in header/content/footer structure. This is ideal for full-bleed media or a fully custom composition.</p>
264
- <p>Part of the dialog design spec is its responsive padding. To apply that same padding to your own content inside an unformatted dialog, wrap it with the <code>unformattedWrapper</code> selector, imported from the package:</p>
265
-
266
- <pre class="language-css"><code class="language-css">@import '@aurodesignsystem/auro-dialog/dist/style-unformatted.css';</code></pre>
267
-
268
- <div class="exampleWrapper">
269
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/accessibility-unformatted-header.html) -->
270
- <!-- The below content is automatically added from ./../apiExamples/accessibility-unformatted-header.html -->
271
- <div>
272
- <auro-button id="openAccessibility">Unformatted Medium Dialog</auro-button>
273
- </div>
274
- <auro-dialog id="unformattedMdDialog" unformatted md lg close-button-appearance="inverse">
275
- <span slot="content">
276
- <img style="display: block; width: 100%" src="https://blog.alaskaair.com/wp-content/uploads/2020/11/111-psp-blog-img-guide.jpg" alt="alaska airlines pride lights" />
277
- <div class="unformattedWrapper">
278
- <h1 id="dialog-header" class="heading-lg">This is a header</h1>
279
- These are words that are slotted into the scope of the custom element.
280
- </div>
281
- </span>
282
- </auro-dialog>
283
- <!-- AURO-GENERATED-CONTENT:END -->
284
- </div>
285
- <auro-accordion alignRight>
286
- <span slot="trigger">See code</span>
287
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/accessibility-unformatted-header.html) -->
288
- <!-- The below code snippet is automatically added from ./../apiExamples/accessibility-unformatted-header.html -->
289
-
290
- <pre class="language-html"><code class="language-html">&lt;div&gt;
291
- &lt;auro-button id="openAccessibility"&gt;Unformatted Medium Dialog&lt;/auro-button&gt;
292
- &lt;/div&gt;
293
- &lt;auro-dialog id="unformattedMdDialog" unformatted md lg close-button-appearance="inverse"&gt;
294
- &lt;span slot="content"&gt;
295
- &lt;img style="display: block; width: 100%" src="https://blog.alaskaair.com/wp-content/uploads/2020/11/111-psp-blog-img-guide.jpg" alt="alaska airlines pride lights" /&gt;
296
- &lt;div class="unformattedWrapper"&gt;
297
- &lt;h1 id="dialog-header" class="heading-lg"&gt;This is a header&lt;/h1&gt;
298
- These are words that are slotted into the scope of the custom element.
299
- &lt;/div&gt;
300
- &lt;/span&gt;
301
- &lt;/auro-dialog&gt;</code></pre>
258
+ &lt;/auro-dialog&gt;</code></pre>
302
259
  <!-- AURO-GENERATED-CONTENT:END -->
303
260
  </auro-accordion>
304
261
  </div>