@aurodesignsystem-dev/auro-popover 0.0.0-pr145.1 → 0.0.0-pr145.2

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
@@ -2578,7 +2578,8 @@ class AuroPopover extends i {
2578
2578
  }
2579
2579
 
2580
2580
  /**
2581
- * Sets up auto-tabindex and `aria-description` on the trigger element.
2581
+ * Adds `tabindex` to a trigger that isn't keyboard accessible, and sets
2582
+ * `aria-description` on each element that receives focus.
2582
2583
  * Safe to run repeatedly: it removes what it added earlier if the trigger has
2583
2584
  * since gained focusable content, and moves `aria-description` to the new targets.
2584
2585
  *
@@ -2594,21 +2595,22 @@ class AuroPopover extends i {
2594
2595
  *
2595
2596
  * A trigger that hasn't rendered yet, or whose custom element isn't defined yet, is
2596
2597
  * briefly given `tabindex="0"` on the first run. The setup re-runs once its shadow
2597
- * DOM appears or the element is defined, and the component removes the `tabindex`
2598
- * it added.
2598
+ * DOM appears or the element is defined. If the trigger then has a focusable control,
2599
+ * the component removes the `tabindex` it added. Otherwise, such as for `auro-icon`,
2600
+ * the `tabindex` stays.
2599
2601
  *
2600
2602
  * Known limitation: custom elements with a closed shadow root (`mode: 'closed'`) can't
2601
2603
  * be inspected, because `shadowRoot` returns `null`. If such an element has an internal focusable
2602
2604
  * descendant and a host `tabIndex` of `-1`, the component adds `tabindex="0"`, potentially
2603
- * creating a double tab stop. Elements using `delegatesFocus` avoid this because the
2604
- * browser reflects a non-negative `tabIndex` on the host.
2605
+ * creating a double tab stop. Setting `delegatesFocus` doesn't prevent this, because
2606
+ * the host's `tabIndex` is still `-1`.
2605
2607
  *
2606
2608
  * `aria-description` (ARIA 1.3): embeds the popover content string directly on
2607
- * the element that receives focus, so screen readers announce it on focus. That is
2608
- * the trigger itself. For a wrapper trigger, or a custom element trigger whose
2609
- * shadow DOM holds the focusable control, such as the inner `<button>` of
2610
- * `auro-button`, it is the focusable element inside the trigger. Preferred over
2611
- * `aria-describedby` (cross-shadow ID lookup fails) and `aria-live` (`display:none`
2609
+ * each element that receives focus, so screen readers announce it on focus. For a
2610
+ * trigger that is focusable itself, that is the trigger. For a wrapper trigger, or a
2611
+ * custom element trigger whose shadow DOM holds the focusable control, such as the
2612
+ * inner `<button>` of `auro-button`, it is every focusable element inside the
2613
+ * trigger. Preferred over `aria-describedby` (cross-shadow ID lookup fails) and `aria-live` (`display:none`
2612
2614
  * removes the region from the accessibility tree).
2613
2615
  *
2614
2616
  * @private
package/demo/index.min.js CHANGED
@@ -2571,7 +2571,8 @@ class AuroPopover extends i {
2571
2571
  }
2572
2572
 
2573
2573
  /**
2574
- * Sets up auto-tabindex and `aria-description` on the trigger element.
2574
+ * Adds `tabindex` to a trigger that isn't keyboard accessible, and sets
2575
+ * `aria-description` on each element that receives focus.
2575
2576
  * Safe to run repeatedly: it removes what it added earlier if the trigger has
2576
2577
  * since gained focusable content, and moves `aria-description` to the new targets.
2577
2578
  *
@@ -2587,21 +2588,22 @@ class AuroPopover extends i {
2587
2588
  *
2588
2589
  * A trigger that hasn't rendered yet, or whose custom element isn't defined yet, is
2589
2590
  * briefly given `tabindex="0"` on the first run. The setup re-runs once its shadow
2590
- * DOM appears or the element is defined, and the component removes the `tabindex`
2591
- * it added.
2591
+ * DOM appears or the element is defined. If the trigger then has a focusable control,
2592
+ * the component removes the `tabindex` it added. Otherwise, such as for `auro-icon`,
2593
+ * the `tabindex` stays.
2592
2594
  *
2593
2595
  * Known limitation: custom elements with a closed shadow root (`mode: 'closed'`) can't
2594
2596
  * be inspected, because `shadowRoot` returns `null`. If such an element has an internal focusable
2595
2597
  * descendant and a host `tabIndex` of `-1`, the component adds `tabindex="0"`, potentially
2596
- * creating a double tab stop. Elements using `delegatesFocus` avoid this because the
2597
- * browser reflects a non-negative `tabIndex` on the host.
2598
+ * creating a double tab stop. Setting `delegatesFocus` doesn't prevent this, because
2599
+ * the host's `tabIndex` is still `-1`.
2598
2600
  *
2599
2601
  * `aria-description` (ARIA 1.3): embeds the popover content string directly on
2600
- * the element that receives focus, so screen readers announce it on focus. That is
2601
- * the trigger itself. For a wrapper trigger, or a custom element trigger whose
2602
- * shadow DOM holds the focusable control, such as the inner `<button>` of
2603
- * `auro-button`, it is the focusable element inside the trigger. Preferred over
2604
- * `aria-describedby` (cross-shadow ID lookup fails) and `aria-live` (`display:none`
2602
+ * each element that receives focus, so screen readers announce it on focus. For a
2603
+ * trigger that is focusable itself, that is the trigger. For a wrapper trigger, or a
2604
+ * custom element trigger whose shadow DOM holds the focusable control, such as the
2605
+ * inner `<button>` of `auro-button`, it is every focusable element inside the
2606
+ * trigger. Preferred over `aria-describedby` (cross-shadow ID lookup fails) and `aria-live` (`display:none`
2605
2607
  * removes the region from the accessibility tree).
2606
2608
  *
2607
2609
  * @private
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem-dev/auro-popover",
10
- "version": "0.0.0-pr145.1",
10
+ "version": "0.0.0-pr145.2",
11
11
  "description": "auro-popover HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",