@aurodesignsystem-dev/auro-toast 0.0.0-pr141.0 → 0.0.0-pr141.1

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/api.md CHANGED
@@ -40,37 +40,35 @@ The `auro-toast` element provides users a way to display short, temporary messag
40
40
  ## Basic
41
41
 
42
42
  <div class="exampleWrapper">
43
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
44
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
45
- <auro-button id="basicToastBtn">
43
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
44
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
45
+ <auro-button id="basicToastBtn">
46
46
  Show default notification
47
- </auro-button>
48
- <!--
47
+ </auro-button>
48
+ <!--
49
49
  NOTE: The manually added style is NOT necessary for use,
50
50
  Demo purposes ONLY!
51
51
  -->
52
- <auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast">
52
+ <auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast">
53
53
  Default notification with no error type.
54
- </auro-toast>
55
- <!-- AURO-GENERATED-CONTENT:END -->
54
+ </auro-toast>
55
+ <!-- AURO-GENERATED-CONTENT:END -->
56
56
  </div>
57
57
  <auro-accordion alignRight>
58
- <span slot="trigger">See code</span>
58
+ <span slot="trigger">See code</span>
59
59
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
60
60
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
61
61
 
62
- ```html
63
- <auro-button id="basicToastBtn">
62
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="basicToastBtn"&gt;
64
63
  Show default notification
65
- </auro-button>
66
- <!--
64
+ &lt;/auro-button&gt;
65
+ &lt;!--
67
66
  NOTE: The manually added style is NOT necessary for use,
68
67
  Demo purposes ONLY!
69
- -->
70
- <auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast">
68
+ --&gt;
69
+ &lt;auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast"&gt;
71
70
  Default notification with no error type.
72
- </auro-toast>
73
- ```
71
+ &lt;/auro-toast&gt;</code></pre>
74
72
  <!-- AURO-GENERATED-CONTENT:END -->
75
73
  </auro-accordion>
76
74
 
@@ -81,29 +79,27 @@ Demo purposes ONLY!
81
79
  Use the `disableAutoHide` attribute to prevent the toast from automatically dismissing itself.
82
80
 
83
81
  <div class="exampleWrapper">
84
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disable-auto-hide.html) -->
85
- <!-- The below content is automatically added from ./../apiExamples/disable-auto-hide.html -->
86
- <auro-button id="disableHideToastBtn">
82
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disable-auto-hide.html) -->
83
+ <!-- The below content is automatically added from ./../apiExamples/disable-auto-hide.html -->
84
+ <auro-button id="disableHideToastBtn">
87
85
  Show default notification
88
- </auro-button>
89
- <auro-toast style="display: block; margin: 0.5rem 0;" id="disableHideToast">
86
+ </auro-button>
87
+ <auro-toast style="display: block; margin: 0.5rem 0;" id="disableHideToast">
90
88
  Default notification with no error type.
91
- </auro-toast>
92
- <!-- AURO-GENERATED-CONTENT:END -->
89
+ </auro-toast>
90
+ <!-- AURO-GENERATED-CONTENT:END -->
93
91
  </div>
94
92
  <auro-accordion alignRight>
95
- <span slot="trigger">See code</span>
93
+ <span slot="trigger">See code</span>
96
94
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disable-auto-hide.html) -->
97
95
  <!-- The below code snippet is automatically added from ./../apiExamples/disable-auto-hide.html -->
98
96
 
99
- ```html
100
- <auro-button id="disableHideToastBtn">
97
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="disableHideToastBtn"&gt;
101
98
  Show default notification
102
- </auro-button>
103
- <auro-toast style="display: block; margin: 0.5rem 0;" id="disableHideToast">
99
+ &lt;/auro-button&gt;
100
+ &lt;auro-toast style="display: block; margin: 0.5rem 0;" id="disableHideToast"&gt;
104
101
  Default notification with no error type.
105
- </auro-toast>
106
- ```
102
+ &lt;/auro-toast&gt;</code></pre>
107
103
  <!-- AURO-GENERATED-CONTENT:END -->
108
104
  </auro-accordion>
109
105
 
@@ -112,21 +108,19 @@ Use the `disableAutoHide` attribute to prevent the toast from automatically dism
112
108
  Using the `noIcon` attribute will set no icon to be visible in the notification.
113
109
 
114
110
  <div class="exampleWrapper">
115
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-icon.html) -->
116
- <!-- The below content is automatically added from ./../apiExamples/no-icon.html -->
117
- <auro-button id="noIconBtn"> Show toast with no icon </auro-button>
118
- <auro-toast id="noIcon" noIcon style="display: block; margin: 0.5rem 0;"> Default toast. </auro-toast>
119
- <!-- AURO-GENERATED-CONTENT:END -->
111
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-icon.html) -->
112
+ <!-- The below content is automatically added from ./../apiExamples/no-icon.html -->
113
+ <auro-button id="noIconBtn"> Show toast with no icon </auro-button>
114
+ <auro-toast id="noIcon" noIcon style="display: block; margin: 0.5rem 0;"> Default toast. </auro-toast>
115
+ <!-- AURO-GENERATED-CONTENT:END -->
120
116
  </div>
121
117
  <auro-accordion alignRight>
122
- <span slot="trigger">See code</span>
118
+ <span slot="trigger">See code</span>
123
119
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-icon.html) -->
124
120
  <!-- The below code snippet is automatically added from ./../apiExamples/no-icon.html -->
125
121
 
126
- ```html
127
- <auro-button id="noIconBtn"> Show toast with no icon </auro-button>
128
- <auro-toast id="noIcon" noIcon style="display: block; margin: 0.5rem 0;"> Default toast. </auro-toast>
129
- ```
122
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="noIconBtn"&gt; Show toast with no icon &lt;/auro-button&gt;
123
+ &lt;auro-toast id="noIcon" noIcon style="display: block; margin: 0.5rem 0;"&gt; Default toast. &lt;/auro-toast&gt;</code></pre>
130
124
  <!-- AURO-GENERATED-CONTENT:END -->
131
125
  </auro-accordion>
132
126
 
@@ -135,29 +129,27 @@ Using the `noIcon` attribute will set no icon to be visible in the notification.
135
129
  Using the `timeTilHide` attribute will set a timer in milliseconds for how long the notification will be visible before it automatically hides. The default is `5000` milliseconds.
136
130
 
137
131
  <div class="exampleWrapper">
138
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/time-til-hide.html) -->
139
- <!-- The below content is automatically added from ./../apiExamples/time-til-hide.html -->
140
- <auro-button id="timeTilHideToastBtn">
132
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/time-til-hide.html) -->
133
+ <!-- The below content is automatically added from ./../apiExamples/time-til-hide.html -->
134
+ <auro-button id="timeTilHideToastBtn">
141
135
  Show default notification
142
- </auro-button>
143
- <auro-toast timeTilHide="1000" style="display: block; margin: 0.5rem 0;" id="timeTilHideToast">
136
+ </auro-button>
137
+ <auro-toast timeTilHide="1000" style="display: block; margin: 0.5rem 0;" id="timeTilHideToast">
144
138
  Default notification with no error type.
145
- </auro-toast>
146
- <!-- AURO-GENERATED-CONTENT:END -->
139
+ </auro-toast>
140
+ <!-- AURO-GENERATED-CONTENT:END -->
147
141
  </div>
148
142
  <auro-accordion alignRight>
149
- <span slot="trigger">See code</span>
143
+ <span slot="trigger">See code</span>
150
144
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/time-til-hide.html) -->
151
145
  <!-- The below code snippet is automatically added from ./../apiExamples/time-til-hide.html -->
152
146
 
153
- ```html
154
- <auro-button id="timeTilHideToastBtn">
147
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="timeTilHideToastBtn"&gt;
155
148
  Show default notification
156
- </auro-button>
157
- <auro-toast timeTilHide="1000" style="display: block; margin: 0.5rem 0;" id="timeTilHideToast">
149
+ &lt;/auro-button&gt;
150
+ &lt;auro-toast timeTilHide="1000" style="display: block; margin: 0.5rem 0;" id="timeTilHideToast"&gt;
158
151
  Default notification with no error type.
159
- </auro-toast>
160
- ```
152
+ &lt;/auro-toast&gt;</code></pre>
161
153
  <!-- AURO-GENERATED-CONTENT:END -->
162
154
  </auro-accordion>
163
155
 
@@ -168,53 +160,51 @@ What the component will render visually based on which variant value is set; cur
168
160
  **Note:** The `error` variant does not automatically hide by default, like other variants.
169
161
 
170
162
  <div class="exampleWrapper">
171
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/variant.html) -->
172
- <!-- The below content is automatically added from ./../apiExamples/variant.html -->
173
- <auro-button id="defaultVariantBtn">
163
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/variant.html) -->
164
+ <!-- The below content is automatically added from ./../apiExamples/variant.html -->
165
+ <auro-button id="defaultVariantBtn">
174
166
  Show default toast
175
- </auro-button>
176
- <auro-toast id="defaultVariant" style="display: block; margin: 0.5rem 0;">
167
+ </auro-button>
168
+ <auro-toast id="defaultVariant" style="display: block; margin: 0.5rem 0;">
177
169
  Default toast.
178
- </auro-toast>
179
- <auro-button id="errorVariantBtn">
170
+ </auro-toast>
171
+ <auro-button id="errorVariantBtn">
180
172
  Show error toast
181
- </auro-button>
182
- <auro-toast id="errorVariant" variant="error" style="display: block; margin: 0.5rem 0;">
173
+ </auro-button>
174
+ <auro-toast id="errorVariant" variant="error" style="display: block; margin: 0.5rem 0;">
183
175
  Unable to add lap infant. Please try again.
184
- </auro-toast>
185
- <auro-button id="successVariantBtn">
176
+ </auro-toast>
177
+ <auro-button id="successVariantBtn">
186
178
  Show success toast
187
- </auro-button>
188
- <auro-toast id="successVariant" variant="success" style="display: block; margin: 0.5rem 0;">
179
+ </auro-button>
180
+ <auro-toast id="successVariant" variant="success" style="display: block; margin: 0.5rem 0;">
189
181
  Successfully added lap infant.
190
- </auro-toast>
191
- <!-- AURO-GENERATED-CONTENT:END -->
182
+ </auro-toast>
183
+ <!-- AURO-GENERATED-CONTENT:END -->
192
184
  </div>
193
185
  <auro-accordion alignRight>
194
- <span slot="trigger">See code</span>
186
+ <span slot="trigger">See code</span>
195
187
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/variant.html) -->
196
188
  <!-- The below code snippet is automatically added from ./../apiExamples/variant.html -->
197
189
 
198
- ```html
199
- <auro-button id="defaultVariantBtn">
190
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="defaultVariantBtn"&gt;
200
191
  Show default toast
201
- </auro-button>
202
- <auro-toast id="defaultVariant" style="display: block; margin: 0.5rem 0;">
192
+ &lt;/auro-button&gt;
193
+ &lt;auro-toast id="defaultVariant" style="display: block; margin: 0.5rem 0;"&gt;
203
194
  Default toast.
204
- </auro-toast>
205
- <auro-button id="errorVariantBtn">
195
+ &lt;/auro-toast&gt;
196
+ &lt;auro-button id="errorVariantBtn"&gt;
206
197
  Show error toast
207
- </auro-button>
208
- <auro-toast id="errorVariant" variant="error" style="display: block; margin: 0.5rem 0;">
198
+ &lt;/auro-button&gt;
199
+ &lt;auro-toast id="errorVariant" variant="error" style="display: block; margin: 0.5rem 0;"&gt;
209
200
  Unable to add lap infant. Please try again.
210
- </auro-toast>
211
- <auro-button id="successVariantBtn">
201
+ &lt;/auro-toast&gt;
202
+ &lt;auro-button id="successVariantBtn"&gt;
212
203
  Show success toast
213
- </auro-button>
214
- <auro-toast id="successVariant" variant="success" style="display: block; margin: 0.5rem 0;">
204
+ &lt;/auro-button&gt;
205
+ &lt;auro-toast id="successVariant" variant="success" style="display: block; margin: 0.5rem 0;"&gt;
215
206
  Successfully added lap infant.
216
- </auro-toast>
217
- ```
207
+ &lt;/auro-toast&gt;</code></pre>
218
208
  <!-- AURO-GENERATED-CONTENT:END -->
219
209
  </auro-accordion>
220
210
 
@@ -241,34 +231,32 @@ The toast notification can be customized in several ways.
241
231
  disableAutoHide
242
232
  style="--ds-auro-toast-container-color: var(--ds-color-background-info-default); --ds-auro-toast-text-color: var(--ds-color-text-primary-default); display: block; margin: 0.5rem 0;">
243
233
  Did you know you can create a price alert for this route?
244
- <br />
245
- <auro-button variant="tertiary">Create Alert</auro-button>
246
- <svg slot="customSvg" aria-labelledby="pin-trip-filled__desc" class="ico_squareLarge" role="img" viewBox="0 0 24 24" style="min-width: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); height: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); fill: currentcolor;"><title></title><desc id="pin-trip-filled__desc">drop pin with circles.</desc><path d="M10.045 3.345a.75.75 0 0 1 .785-.714l.05.003a.75.75 0 0 1-.082 1.498l-.04-.002a.75.75 0 0 1-.713-.785m-1.217.22a.75.75 0 0 1-.357 1l-.034.016a.75.75 0 0 1-.655-1.35l.047-.022a.75.75 0 0 1 .999.357m3.949.186a.75.75 0 0 1 1.012-.318l.045.023a.75.75 0 0 1-.703 1.326l-.035-.019a.75.75 0 0 1-.319-1.012M6.508 5.057a.75.75 0 0 1 .2 1.041l-.01.017a.75.75 0 1 1-1.246-.836l.014-.022a.75.75 0 0 1 1.042-.2m8.577.22a.75.75 0 0 1 1.038.218l.028.044a.75.75 0 0 1-1.264.808l-.02-.032a.75.75 0 0 1 .218-1.038m6.02 7.014c0-2.789-2.44-4.88-4.88-4.88s-4.881 2.091-4.881 4.88q0 2.559 4.11 8.496l.199.285.055.068a.697.697 0 0 0 1.088-.068q4.31-6.16 4.309-8.781m-6.275 0a1.394 1.394 0 1 1 2.789 0 1.394 1.394 0 0 1-2.789 0M4.635 10.704a1.74 1.74 0 1 0 0-3.48 1.74 1.74 0 0 0 0 3.48"></path></svg>
234
+ <br />
235
+ <auro-button variant="tertiary">Create Alert</auro-button>
236
+ <svg slot="customSvg" aria-labelledby="pin-trip-filled__desc" class="ico_squareLarge" role="img" viewBox="0 0 24 24" style="min-width: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); height: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); fill: currentcolor;"><title></title><desc id="pin-trip-filled__desc">drop pin with circles.</desc><path d="M10.045 3.345a.75.75 0 0 1 .785-.714l.05.003a.75.75 0 0 1-.082 1.498l-.04-.002a.75.75 0 0 1-.713-.785m-1.217.22a.75.75 0 0 1-.357 1l-.034.016a.75.75 0 0 1-.655-1.35l.047-.022a.75.75 0 0 1 .999.357m3.949.186a.75.75 0 0 1 1.012-.318l.045.023a.75.75 0 0 1-.703 1.326l-.035-.019a.75.75 0 0 1-.319-1.012M6.508 5.057a.75.75 0 0 1 .2 1.041l-.01.017a.75.75 0 1 1-1.246-.836l.014-.022a.75.75 0 0 1 1.042-.2m8.577.22a.75.75 0 0 1 1.038.218l.028.044a.75.75 0 0 1-1.264.808l-.02-.032a.75.75 0 0 1 .218-1.038m6.02 7.014c0-2.789-2.44-4.88-4.88-4.88s-4.881 2.091-4.881 4.88q0 2.559 4.11 8.496l.199.285.055.068a.697.697 0 0 0 1.088-.068q4.31-6.16 4.309-8.781m-6.275 0a1.394 1.394 0 1 1 2.789 0 1.394 1.394 0 0 1-2.789 0M4.635 10.704a1.74 1.74 0 1 0 0-3.48 1.74 1.74 0 0 0 0 3.48"></path></svg>
247
237
  </auro-toast>
248
238
  <!-- AURO-GENERATED-CONTENT:END -->
249
239
  </div>
250
240
  <auro-accordion alignRight>
251
- <span slot="trigger">See code</span>
241
+ <span slot="trigger">See code</span>
252
242
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/custom-toast.html) -->
253
243
  <!-- The below code snippet is automatically added from ../apiExamples/custom-toast.html -->
254
244
 
255
- ```html
256
- <!-- icon variant -->
257
- <auro-button id="customizedToastBtn">
245
+ <pre class="language-html"><code class="language-html">&lt;!-- icon variant --&gt;
246
+ &lt;auro-button id="customizedToastBtn"&gt;
258
247
  Show customized notification
259
- </auro-button>
260
- <auro-toast
248
+ &lt;/auro-button&gt;
249
+ &lt;auro-toast
261
250
  id="customizedToast"
262
251
  variant="custom"
263
252
  visible
264
253
  disableAutoHide
265
- style="--ds-auro-toast-container-color: var(--ds-color-background-info-default); --ds-auro-toast-text-color: var(--ds-color-text-primary-default); display: block; margin: 0.5rem 0;">
254
+ style="--ds-auro-toast-container-color: var(--ds-color-background-info-default); --ds-auro-toast-text-color: var(--ds-color-text-primary-default); display: block; margin: 0.5rem 0;"&gt;
266
255
  Did you know you can create a price alert for this route?
267
- <br />
268
- <auro-button variant="tertiary">Create Alert</auro-button>
269
- <svg slot="customSvg" aria-labelledby="pin-trip-filled__desc" class="ico_squareLarge" role="img" viewBox="0 0 24 24" style="min-width: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); height: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); fill: currentcolor;"><title></title><desc id="pin-trip-filled__desc">drop pin with circles.</desc><path d="M10.045 3.345a.75.75 0 0 1 .785-.714l.05.003a.75.75 0 0 1-.082 1.498l-.04-.002a.75.75 0 0 1-.713-.785m-1.217.22a.75.75 0 0 1-.357 1l-.034.016a.75.75 0 0 1-.655-1.35l.047-.022a.75.75 0 0 1 .999.357m3.949.186a.75.75 0 0 1 1.012-.318l.045.023a.75.75 0 0 1-.703 1.326l-.035-.019a.75.75 0 0 1-.319-1.012M6.508 5.057a.75.75 0 0 1 .2 1.041l-.01.017a.75.75 0 1 1-1.246-.836l.014-.022a.75.75 0 0 1 1.042-.2m8.577.22a.75.75 0 0 1 1.038.218l.028.044a.75.75 0 0 1-1.264.808l-.02-.032a.75.75 0 0 1 .218-1.038m6.02 7.014c0-2.789-2.44-4.88-4.88-4.88s-4.881 2.091-4.881 4.88q0 2.559 4.11 8.496l.199.285.055.068a.697.697 0 0 0 1.088-.068q4.31-6.16 4.309-8.781m-6.275 0a1.394 1.394 0 1 1 2.789 0 1.394 1.394 0 0 1-2.789 0M4.635 10.704a1.74 1.74 0 1 0 0-3.48 1.74 1.74 0 0 0 0 3.48"></path></svg>
270
- </auro-toast>
271
- ```
256
+ &lt;br /&gt;
257
+ &lt;auro-button variant="tertiary"&gt;Create Alert&lt;/auro-button&gt;
258
+ &lt;svg slot="customSvg" aria-labelledby="pin-trip-filled__desc" class="ico_squareLarge" role="img" viewBox="0 0 24 24" style="min-width: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); height: var(--auro-size-lg, var(--ds-size-300, 1.5rem)); fill: currentcolor;"&gt;&lt;title&gt;&lt;/title&gt;&lt;desc id="pin-trip-filled__desc"&gt;drop pin with circles.&lt;/desc&gt;&lt;path d="M10.045 3.345a.75.75 0 0 1 .785-.714l.05.003a.75.75 0 0 1-.082 1.498l-.04-.002a.75.75 0 0 1-.713-.785m-1.217.22a.75.75 0 0 1-.357 1l-.034.016a.75.75 0 0 1-.655-1.35l.047-.022a.75.75 0 0 1 .999.357m3.949.186a.75.75 0 0 1 1.012-.318l.045.023a.75.75 0 0 1-.703 1.326l-.035-.019a.75.75 0 0 1-.319-1.012M6.508 5.057a.75.75 0 0 1 .2 1.041l-.01.017a.75.75 0 1 1-1.246-.836l.014-.022a.75.75 0 0 1 1.042-.2m8.577.22a.75.75 0 0 1 1.038.218l.028.044a.75.75 0 0 1-1.264.808l-.02-.032a.75.75 0 0 1 .218-1.038m6.02 7.014c0-2.789-2.44-4.88-4.88-4.88s-4.881 2.091-4.881 4.88q0 2.559 4.11 8.496l.199.285.055.068a.697.697 0 0 0 1.088-.068q4.31-6.16 4.309-8.781m-6.275 0a1.394 1.394 0 1 1 2.789 0 1.394 1.394 0 0 1-2.789 0M4.635 10.704a1.74 1.74 0 1 0 0-3.48 1.74 1.74 0 0 0 0 3.48"&gt;&lt;/path&gt;&lt;/svg&gt;
259
+ &lt;/auro-toast&gt;</code></pre>
272
260
  <!-- AURO-GENERATED-CONTENT:END -->
273
261
  </auro-accordion>
274
262
 
@@ -277,29 +265,27 @@ The toast notification can be customized in several ways.
277
265
  State of the push notification which determines if it is `visible`.
278
266
 
279
267
  <div class="exampleWrapper">
280
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/visible.html) -->
281
- <!-- The below content is automatically added from ./../apiExamples/visible.html -->
282
- <auro-button id="visibleToastBtn">
268
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/visible.html) -->
269
+ <!-- The below content is automatically added from ./../apiExamples/visible.html -->
270
+ <auro-button id="visibleToastBtn">
283
271
  Set visible to true
284
- </auro-button>
285
- <auro-toast id="visibleToast" style="display: block; margin: 0.5rem 0;">
272
+ </auro-button>
273
+ <auro-toast id="visibleToast" style="display: block; margin: 0.5rem 0;">
286
274
  Default toast.
287
- </auro-toast>
288
- <!-- AURO-GENERATED-CONTENT:END -->
275
+ </auro-toast>
276
+ <!-- AURO-GENERATED-CONTENT:END -->
289
277
  </div>
290
278
  <auro-accordion alignRight>
291
- <span slot="trigger">See code</span>
279
+ <span slot="trigger">See code</span>
292
280
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/visible.html) -->
293
281
  <!-- The below code snippet is automatically added from ./../apiExamples/visible.html -->
294
282
 
295
- ```html
296
- <auro-button id="visibleToastBtn">
283
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="visibleToastBtn"&gt;
297
284
  Set visible to true
298
- </auro-button>
299
- <auro-toast id="visibleToast" style="display: block; margin: 0.5rem 0;">
285
+ &lt;/auro-button&gt;
286
+ &lt;auro-toast id="visibleToast" style="display: block; margin: 0.5rem 0;"&gt;
300
287
  Default toast.
301
- </auro-toast>
302
- ```
288
+ &lt;/auro-toast&gt;</code></pre>
303
289
  <!-- AURO-GENERATED-CONTENT:END -->
304
290
  </auro-accordion>
305
291
 
@@ -308,122 +294,118 @@ State of the push notification which determines if it is `visible`.
308
294
  When a toast is manually dismissed via the close button, focus should return to the element that originally triggered it. Use the `trigger` attribute to specify the `id` of that element, or the `triggerElement` property to pass a direct element reference. The `trigger` attribute takes precedence when both are set.
309
295
 
310
296
  <div class="exampleWrapper">
311
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/trigger.html) -->
312
- <!-- The below content is automatically added from ./../apiExamples/trigger.html -->
313
- <p>Use the <code>trigger</code> attribute to pass the <code>id</code> of the element that opened the toast. When the toast is manually closed, focus will return to that element.</p>
314
- <auro-button id="triggerAttrBtn">
297
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/trigger.html) -->
298
+ <!-- The below content is automatically added from ./../apiExamples/trigger.html -->
299
+ <p>Use the <code>trigger</code> attribute to pass the <code>id</code> of the element that opened the toast. When the toast is manually closed, focus will return to that element.</p>
300
+ <auro-button id="triggerAttrBtn">
315
301
  Show notification
316
- </auro-button>
317
- <!--
302
+ </auro-button>
303
+ <!--
318
304
  NOTE: The manually added style is NOT necessary for use,
319
305
  Demo purposes ONLY!
320
306
  -->
321
- <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerAttrToast" trigger="triggerAttrBtn" disableAutoHide>
307
+ <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerAttrToast" trigger="triggerAttrBtn" disableAutoHide>
322
308
  Flight booked successfully
323
- </auro-toast>
324
- <p>Use the <code>triggerElement</code> property to pass a direct reference to the element that opened the toast. Useful when an <code>id</code> is not available or when working programmatically.</p>
325
- <auro-button id="triggerPropBtn">
309
+ </auro-toast>
310
+ <p>Use the <code>triggerElement</code> property to pass a direct reference to the element that opened the toast. Useful when an <code>id</code> is not available or when working programmatically.</p>
311
+ <auro-button id="triggerPropBtn">
326
312
  Show notification
327
- </auro-button>
328
- <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPropToast" disableAutoHide>
313
+ </auro-button>
314
+ <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPropToast" disableAutoHide>
329
315
  Flight booked successfully.
330
- </auro-toast>
331
- <p>When both <code>trigger</code> and <code>triggerElement</code> are set, <code>trigger</code> takes precedence. In this example, <code>triggerElement</code> points to the second button but <code>trigger</code> points to the first — focus returns to the first button on close.</p>
332
- <auro-button id="triggerPrecedenceBtn1">
316
+ </auro-toast>
317
+ <p>When both <code>trigger</code> and <code>triggerElement</code> are set, <code>trigger</code> takes precedence. In this example, <code>triggerElement</code> points to the second button but <code>trigger</code> points to the first — focus returns to the first button on close.</p>
318
+ <auro-button id="triggerPrecedenceBtn1">
333
319
  Button 1 (trigger attribute target)
334
- </auro-button>
335
- <auro-button id="triggerPrecedenceBtn2">
320
+ </auro-button>
321
+ <auro-button id="triggerPrecedenceBtn2">
336
322
  Button 2 (triggerElement target — ignored)
337
- </auro-button>
338
- <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPrecedenceToast" trigger="triggerPrecedenceBtn1" disableAutoHide>
323
+ </auro-button>
324
+ <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPrecedenceToast" trigger="triggerPrecedenceBtn1" disableAutoHide>
339
325
  Flight booked successfully.
340
- </auro-toast>
341
- <!-- AURO-GENERATED-CONTENT:END -->
326
+ </auro-toast>
327
+ <!-- AURO-GENERATED-CONTENT:END -->
342
328
  </div>
343
329
  <auro-accordion alignRight>
344
- <span slot="trigger">See code</span>
330
+ <span slot="trigger">See code</span>
345
331
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/trigger.html) -->
346
332
  <!-- The below code snippet is automatically added from ./../apiExamples/trigger.html -->
347
333
 
348
- ```html
349
- <p>Use the <code>trigger</code> attribute to pass the <code>id</code> of the element that opened the toast. When the toast is manually closed, focus will return to that element.</p>
350
- <auro-button id="triggerAttrBtn">
334
+ <pre class="language-html"><code class="language-html">&lt;p&gt;Use the &lt;code&gt;trigger&lt;/code&gt; attribute to pass the &lt;code&gt;id&lt;/code&gt; of the element that opened the toast. When the toast is manually closed, focus will return to that element.&lt;/p&gt;
335
+ &lt;auro-button id="triggerAttrBtn"&gt;
351
336
  Show notification
352
- </auro-button>
353
- <!--
337
+ &lt;/auro-button&gt;
338
+ &lt;!--
354
339
  NOTE: The manually added style is NOT necessary for use,
355
340
  Demo purposes ONLY!
356
- -->
357
- <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerAttrToast" trigger="triggerAttrBtn" disableAutoHide>
341
+ --&gt;
342
+ &lt;auro-toast style="display: block; margin: 0.5rem 0;" id="triggerAttrToast" trigger="triggerAttrBtn" disableAutoHide&gt;
358
343
  Flight booked successfully
359
- </auro-toast>
360
- <p>Use the <code>triggerElement</code> property to pass a direct reference to the element that opened the toast. Useful when an <code>id</code> is not available or when working programmatically.</p>
361
- <auro-button id="triggerPropBtn">
344
+ &lt;/auro-toast&gt;
345
+ &lt;p&gt;Use the &lt;code&gt;triggerElement&lt;/code&gt; property to pass a direct reference to the element that opened the toast. Useful when an &lt;code&gt;id&lt;/code&gt; is not available or when working programmatically.&lt;/p&gt;
346
+ &lt;auro-button id="triggerPropBtn"&gt;
362
347
  Show notification
363
- </auro-button>
364
- <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPropToast" disableAutoHide>
348
+ &lt;/auro-button&gt;
349
+ &lt;auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPropToast" disableAutoHide&gt;
365
350
  Flight booked successfully.
366
- </auro-toast>
367
- <p>When both <code>trigger</code> and <code>triggerElement</code> are set, <code>trigger</code> takes precedence. In this example, <code>triggerElement</code> points to the second button but <code>trigger</code> points to the first — focus returns to the first button on close.</p>
368
- <auro-button id="triggerPrecedenceBtn1">
351
+ &lt;/auro-toast&gt;
352
+ &lt;p&gt;When both &lt;code&gt;trigger&lt;/code&gt; and &lt;code&gt;triggerElement&lt;/code&gt; are set, &lt;code&gt;trigger&lt;/code&gt; takes precedence. In this example, &lt;code&gt;triggerElement&lt;/code&gt; points to the second button but &lt;code&gt;trigger&lt;/code&gt; points to the first — focus returns to the first button on close.&lt;/p&gt;
353
+ &lt;auro-button id="triggerPrecedenceBtn1"&gt;
369
354
  Button 1 (trigger attribute target)
370
- </auro-button>
371
- <auro-button id="triggerPrecedenceBtn2">
355
+ &lt;/auro-button&gt;
356
+ &lt;auro-button id="triggerPrecedenceBtn2"&gt;
372
357
  Button 2 (triggerElement target — ignored)
373
- </auro-button>
374
- <auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPrecedenceToast" trigger="triggerPrecedenceBtn1" disableAutoHide>
358
+ &lt;/auro-button&gt;
359
+ &lt;auro-toast style="display: block; margin: 0.5rem 0;" id="triggerPrecedenceToast" trigger="triggerPrecedenceBtn1" disableAutoHide&gt;
375
360
  Flight booked successfully.
376
- </auro-toast>
377
- ```
361
+ &lt;/auro-toast&gt;</code></pre>
378
362
  <!-- AURO-GENERATED-CONTENT:END -->
379
363
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/trigger.js) -->
380
364
  <!-- The below code snippet is automatically added from ./../apiExamples/trigger.js -->
381
365
 
382
- ```js
383
- /* eslint-disable jsdoc/require-jsdoc */
384
-
366
+ <pre class="language-js"><code class="language-js">/* eslint-disable jsdoc/require-jsdoc */
367
+ ​
385
368
  export function initTriggerExample() {
386
369
  // trigger attribute — pass element id as a string
387
370
  const attrBtn = document.querySelector("#triggerAttrBtn");
388
371
  const attrToast = document.querySelector("#triggerAttrToast");
389
-
390
- attrBtn.addEventListener("click", () => {
372
+ ​
373
+ attrBtn.addEventListener("click", () =&gt; {
391
374
  if (!attrToast.hasAttribute("visible")) {
392
375
  attrToast.setAttribute("visible", true);
393
376
  }
394
377
  });
395
-
378
+ ​
396
379
  // triggerElement property — pass a direct element reference
397
380
  const propBtn = document.querySelector("#triggerPropBtn");
398
381
  const propToast = document.querySelector("#triggerPropToast");
399
-
400
- propBtn.addEventListener("click", () => {
382
+ ​
383
+ propBtn.addEventListener("click", () =&gt; {
401
384
  if (!propToast.hasAttribute("visible")) {
402
385
  propToast.triggerElement = propBtn;
403
386
  propToast.setAttribute("visible", true);
404
387
  }
405
388
  });
406
-
389
+ ​
407
390
  // precedence — trigger attribute wins over triggerElement when both are set
408
391
  const precedenceBtn1 = document.querySelector("#triggerPrecedenceBtn1");
409
392
  const precedenceBtn2 = document.querySelector("#triggerPrecedenceBtn2");
410
393
  const precedenceToast = document.querySelector("#triggerPrecedenceToast");
411
-
412
- precedenceBtn1.addEventListener("click", () => {
394
+ ​
395
+ precedenceBtn1.addEventListener("click", () =&gt; {
413
396
  if (!precedenceToast.hasAttribute("visible")) {
414
397
  precedenceToast.triggerElement = precedenceBtn2;
415
398
  precedenceToast.setAttribute("visible", true);
416
399
  }
417
400
  });
418
-
419
- precedenceBtn2.addEventListener("click", () => {
401
+ ​
402
+ precedenceBtn2.addEventListener("click", () =&gt; {
420
403
  if (!precedenceToast.hasAttribute("visible")) {
421
404
  precedenceToast.triggerElement = precedenceBtn2;
422
405
  precedenceToast.setAttribute("visible", true);
423
406
  }
424
407
  });
425
- }
426
- ```
408
+ }</code></pre>
427
409
  <!-- AURO-GENERATED-CONTENT:END -->
428
410
  </auro-accordion>
429
411
 
@@ -434,33 +416,31 @@ export function initTriggerExample() {
434
416
  The multi-notification use case requires the use of the `<auro-toaster>` component. Toaster will render the toasts at the bottom right of a page.
435
417
 
436
418
  <div class="exampleWrapper">
437
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/multiple-toasts.html) -->
438
- <!-- The below content is automatically added from ./../apiExamples/multiple-toasts.html -->
439
- <auro-button id="multiToastBtn-default">Show default toast</auro-button>
440
- <auro-button id="multiToastBtn-error">Show error toast</auro-button>
441
- <auro-button id="multiToastBtn-success">Show success toast</auro-button>
442
- <auro-toaster>
443
- <auro-toast id="multiToast-default">Default toast.</auro-toast>
444
- <auro-toast id="multiToast-error" variant="error">Unable to add lap infant. Please try again.</auro-toast>
445
- <auro-toast id="multiToast-success" variant="success">Successfully added lap infant.</auro-toast>
446
- </auro-toaster>
447
- <!-- AURO-GENERATED-CONTENT:END -->
419
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/multiple-toasts.html) -->
420
+ <!-- The below content is automatically added from ./../apiExamples/multiple-toasts.html -->
421
+ <auro-button id="multiToastBtn-default">Show default toast</auro-button>
422
+ <auro-button id="multiToastBtn-error">Show error toast</auro-button>
423
+ <auro-button id="multiToastBtn-success">Show success toast</auro-button>
424
+ <auro-toaster>
425
+ <auro-toast id="multiToast-default">Default toast.</auro-toast>
426
+ <auro-toast id="multiToast-error" variant="error">Unable to add lap infant. Please try again.</auro-toast>
427
+ <auro-toast id="multiToast-success" variant="success">Successfully added lap infant.</auro-toast>
428
+ </auro-toaster>
429
+ <!-- AURO-GENERATED-CONTENT:END -->
448
430
  </div>
449
431
  <auro-accordion alignRight>
450
- <span slot="trigger">See code</span>
432
+ <span slot="trigger">See code</span>
451
433
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/multiple-toasts.html) -->
452
434
  <!-- The below code snippet is automatically added from ./../apiExamples/multiple-toasts.html -->
453
435
 
454
- ```html
455
- <auro-button id="multiToastBtn-default">Show default toast</auro-button>
456
- <auro-button id="multiToastBtn-error">Show error toast</auro-button>
457
- <auro-button id="multiToastBtn-success">Show success toast</auro-button>
458
- <auro-toaster>
459
- <auro-toast id="multiToast-default">Default toast.</auro-toast>
460
- <auro-toast id="multiToast-error" variant="error">Unable to add lap infant. Please try again.</auro-toast>
461
- <auro-toast id="multiToast-success" variant="success">Successfully added lap infant.</auro-toast>
462
- </auro-toaster>
463
- ```
436
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="multiToastBtn-default"&gt;Show default toast&lt;/auro-button&gt;
437
+ &lt;auro-button id="multiToastBtn-error"&gt;Show error toast&lt;/auro-button&gt;
438
+ &lt;auro-button id="multiToastBtn-success"&gt;Show success toast&lt;/auro-button&gt;
439
+ &lt;auro-toaster&gt;
440
+ &lt;auro-toast id="multiToast-default"&gt;Default toast.&lt;/auro-toast&gt;
441
+ &lt;auro-toast id="multiToast-error" variant="error"&gt;Unable to add lap infant. Please try again.&lt;/auro-toast&gt;
442
+ &lt;auro-toast id="multiToast-success" variant="success"&gt;Successfully added lap infant.&lt;/auro-toast&gt;
443
+ &lt;/auro-toaster&gt;</code></pre>
464
444
  <!-- AURO-GENERATED-CONTENT:END -->
465
445
  </auro-accordion>
466
446
 
@@ -469,80 +449,76 @@ The multi-notification use case requires the use of the `<auro-toaster>` compone
469
449
  The dynamic notification use case requires the use of the `<auro-toaster>` component. Toaster will render the toasts at the bottom right of a page.
470
450
 
471
451
  <div class="exampleWrapper">
472
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamic-toasts.html) -->
473
- <!-- The below content is automatically added from ./../apiExamples/dynamic-toasts.html -->
474
- <auro-button id="dynamicToastBtn-default">Show default toast</auro-button>
475
- <auro-button id="dynamicToastBtn-error">Show error toast</auro-button>
476
- <auro-button id="dynamicToastBtn-success">Show success toast</auro-button>
477
- <auro-toaster id="dynamicToaster">
478
- </auro-toaster>
479
- <!-- AURO-GENERATED-CONTENT:END -->
452
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamic-toasts.html) -->
453
+ <!-- The below content is automatically added from ./../apiExamples/dynamic-toasts.html -->
454
+ <auro-button id="dynamicToastBtn-default">Show default toast</auro-button>
455
+ <auro-button id="dynamicToastBtn-error">Show error toast</auro-button>
456
+ <auro-button id="dynamicToastBtn-success">Show success toast</auro-button>
457
+ <auro-toaster id="dynamicToaster">
458
+ </auro-toaster>
459
+ <!-- AURO-GENERATED-CONTENT:END -->
480
460
  </div>
481
461
  <auro-accordion alignRight>
482
- <span slot="trigger">See code</span>
462
+ <span slot="trigger">See code</span>
483
463
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic-toasts.html) -->
484
464
  <!-- The below code snippet is automatically added from ./../apiExamples/dynamic-toasts.html -->
485
465
 
486
- ```html
487
- <auro-button id="dynamicToastBtn-default">Show default toast</auro-button>
488
- <auro-button id="dynamicToastBtn-error">Show error toast</auro-button>
489
- <auro-button id="dynamicToastBtn-success">Show success toast</auro-button>
490
- <auro-toaster id="dynamicToaster">
491
- </auro-toaster>
492
- ```
466
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="dynamicToastBtn-default"&gt;Show default toast&lt;/auro-button&gt;
467
+ &lt;auro-button id="dynamicToastBtn-error"&gt;Show error toast&lt;/auro-button&gt;
468
+ &lt;auro-button id="dynamicToastBtn-success"&gt;Show success toast&lt;/auro-button&gt;
469
+ &lt;auro-toaster id="dynamicToaster"&gt;
470
+ &lt;/auro-toaster&gt;</code></pre>
493
471
  <!-- AURO-GENERATED-CONTENT:END -->
494
472
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic-toasts.js) -->
495
473
  <!-- The below code snippet is automatically added from ./../apiExamples/dynamic-toasts.js -->
496
474
 
497
- ```js
498
- /* eslint-disable jsdoc/require-jsdoc */
499
-
475
+ <pre class="language-js"><code class="language-js">/* eslint-disable jsdoc/require-jsdoc */
476
+ ​
500
477
  const toastDefs = [
501
478
  { id: "dynamicToast-default", variant: null, message: "Default toast.", btnId: "dynamicToastBtn-default" },
502
479
  { id: "dynamicToast-error", variant: "error", message: "Unable to add lap infant. Please try again.", btnId: "dynamicToastBtn-error" },
503
480
  { id: "dynamicToast-success", variant: "success", message: "Successfully added lap infant.", btnId: "dynamicToastBtn-success" },
504
481
  ];
505
-
482
+ ​
506
483
  // simple in-memory registry of active toasts
507
484
  const activeToasts = new Map();
508
-
485
+ ​
509
486
  function generateToastId(baseId) {
510
487
  return `${baseId}-${crypto.randomUUID()}`;
511
488
  }
512
-
489
+ ​
513
490
  export function initDynamicToastsExample() {
514
491
  const toaster = document.querySelector("#dynamicToaster");
515
-
516
- toastDefs.forEach(({ id: baseId, variant, message, btnId }) => {
517
- document.querySelector(`#${btnId}`).addEventListener("click", () => {
492
+ ​
493
+ toastDefs.forEach(({ id: baseId, variant, message, btnId }) =&gt; {
494
+ document.querySelector(`#${btnId}`).addEventListener("click", () =&gt; {
518
495
  const toast = document.createElement("auro-toast");
519
-
496
+ ​
520
497
  const toastId = generateToastId(baseId);
521
-
498
+ ​
522
499
  toast.id = toastId;
523
-
500
+ ​
524
501
  if (variant) {
525
502
  toast.setAttribute("variant", variant);
526
503
  }
527
-
504
+ ​
528
505
  toast.setAttribute("visible", true);
529
506
  toast.textContent = message;
530
-
507
+ ​
531
508
  toaster.appendChild(toast);
532
-
509
+ ​
533
510
  // 👇 now the ID is actually used meaningfully
534
511
  activeToasts.set(toastId, toast);
535
-
512
+ ​
536
513
  console.log("Toast added:", toastId);
537
-
514
+ ​
538
515
  // optional cleanup if your component doesn't auto-remove itself
539
- toast.addEventListener("onToastClose", () => {
516
+ toast.addEventListener("onToastClose", () =&gt; {
540
517
  activeToasts.delete(toastId);
541
518
  });
542
519
  });
543
520
  });
544
- }
545
- ```
521
+ }</code></pre>
546
522
  <!-- AURO-GENERATED-CONTENT:END -->
547
523
  </auro-accordion>
548
524
 
@@ -559,40 +535,36 @@ The required pattern is a persistent container — a `div` or equivalent — wit
559
535
  \* Only use `aria-live="assertive"` if your UI is making use of toasts that are alerting the user of important information. If you are not using `auro-toaster` you are responsible for managing the changes between `assertive` and `polite` announcement states.
560
536
 
561
537
  <div class="exampleWrapper">
562
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/standalone-toast.html) -->
563
- <!-- The below content is automatically added from ./../apiExamples/standalone-toast.html -->
564
- <auro-button id="standaloneToastBtn">Show toast</auro-button>
565
- <div id="standaloneContainer" aria-live="polite" aria-atomic="false"></div>
566
- <!-- AURO-GENERATED-CONTENT:END -->
538
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/standalone-toast.html) -->
539
+ <!-- The below content is automatically added from ./../apiExamples/standalone-toast.html -->
540
+ <auro-button id="standaloneToastBtn">Show toast</auro-button>
541
+ <div id="standaloneContainer" aria-live="polite" aria-atomic="false"></div>
542
+ <!-- AURO-GENERATED-CONTENT:END -->
567
543
  </div>
568
544
  <auro-accordion alignRight>
569
- <span slot="trigger">See code</span>
545
+ <span slot="trigger">See code</span>
570
546
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/standalone-toast.html) -->
571
547
  <!-- The below code snippet is automatically added from ./../apiExamples/standalone-toast.html -->
572
548
 
573
- ```html
574
- <auro-button id="standaloneToastBtn">Show toast</auro-button>
575
- <div id="standaloneContainer" aria-live="polite" aria-atomic="false"></div>
576
- ```
549
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="standaloneToastBtn"&gt;Show toast&lt;/auro-button&gt;
550
+ &lt;div id="standaloneContainer" aria-live="polite" aria-atomic="false"&gt;&lt;/div&gt;</code></pre>
577
551
  <!-- AURO-GENERATED-CONTENT:END -->
578
552
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/standalone-toast.js) -->
579
553
  <!-- The below code snippet is automatically added from ./../apiExamples/standalone-toast.js -->
580
554
 
581
- ```js
582
- /* eslint-disable jsdoc/require-jsdoc */
583
-
555
+ <pre class="language-js"><code class="language-js">/* eslint-disable jsdoc/require-jsdoc */
556
+ ​
584
557
  export function initStandaloneToastExample() {
585
558
  const container = document.querySelector("#standaloneContainer");
586
-
587
- document.querySelector("#standaloneToastBtn").addEventListener("click", () => {
559
+ ​
560
+ document.querySelector("#standaloneToastBtn").addEventListener("click", () =&gt; {
588
561
  const toast = document.createElement("auro-toast");
589
562
  toast.setAttribute("visible", "");
590
563
  toast.setAttribute("variant", "success");
591
564
  toast.textContent = "Successfully added lap infant";
592
565
  container.appendChild(toast);
593
566
  });
594
- }
595
- ```
567
+ }</code></pre>
596
568
  <!-- AURO-GENERATED-CONTENT:END -->
597
569
  </auro-accordion>
598
570
 
@@ -603,14 +575,12 @@ The component may be restyled by changing the values of the following token(s).
603
575
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
604
576
  <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
605
577
 
606
- ```scss
607
- @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
608
-
578
+ <pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
579
+ ​
609
580
  :host {
610
581
  --ds-auro-toast-close-button-hover-container-color: var(--ds-advanced-color-button-tertiary-background-hover, #{v.$ds-advanced-color-button-tertiary-background-hover});
611
582
  --ds-auro-toast-container-color: var(--ds-advanced-color-shared-background-strong, #{v.$ds-advanced-color-shared-background-strong});
612
583
  --ds-auro-toast-icon-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
613
584
  --ds-auro-toast-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
614
- }
615
- ```
585
+ }</code></pre>
616
586
  <!-- AURO-GENERATED-CONTENT:END -->