@aurodesignsystem/auro-dialog 4.0.0 → 4.1.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.min.js CHANGED
@@ -178,6 +178,19 @@ function initSizeOptionsExample() {
178
178
  });
179
179
  }
180
180
 
181
+ function initAriaLabelSlotExample() {
182
+ const button = document.querySelector("#openAriaLabelSlot");
183
+ const dialog = document.querySelector("#ariaLabelMdDialog");
184
+
185
+ button.addEventListener("click", () => {
186
+ if (dialog.hasAttribute("open")) {
187
+ dialog.removeAttribute("open");
188
+ } else {
189
+ dialog.setAttribute("open", true);
190
+ }
191
+ });
192
+ }
193
+
181
194
  AuroDialog.register();
182
195
 
183
196
  function initExamples(initCount) {
@@ -186,12 +199,13 @@ function initExamples(initCount) {
186
199
 
187
200
  try {
188
201
  initBasicExample();
189
- initAccessibilityExample();
190
- initDecoupledExample();
191
- initEditCloseButtonExample();
202
+ initSizeOptionsExample();
192
203
  initModalExample();
204
+ initDecoupledExample();
193
205
  initPopoverAndDropdownExample();
194
- initSizeOptionsExample();
206
+ initEditCloseButtonExample();
207
+ initAriaLabelSlotExample();
208
+ initAccessibilityExample();
195
209
  } catch (_err) {
196
210
  if (initCount <= 20) {
197
211
  // setTimeout handles issue where content is sometimes loaded after the functions get called