@aurodesignsystem-dev/auro-popover 0.0.0-pr141.0 → 0.0.0-pr141.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/README.md CHANGED
@@ -32,11 +32,11 @@ Shows short supporting content next to a trigger when someone hovers over, focus
32
32
 
33
33
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
34
  <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
- The `auro-popover` element should be used in situations where users may:
35
+ Use `auro-popover` to give people more detail without leaving the page, such as:
36
36
 
37
- * interact with an element to get clarification on content offering
38
- * provide definition to iconic imagery
39
- * when helper text is required
37
+ * A short clarification of content they're reading.
38
+ * A definition for an icon.
39
+ * Helper text for a control.
40
40
  <!-- AURO-GENERATED-CONTENT:END -->
41
41
 
42
42
  ## Install
package/demo/api.md CHANGED
@@ -14,14 +14,14 @@ Shows short supporting content next to a trigger when someone hovers over, focus
14
14
 
15
15
  ### Properties and attributes
16
16
 
17
- | Properties | Attributes | Modifiers | Type | Default | Description |
18
- | ----------- | ----------- | --------- | ---------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19
- | addSpace | addspace | | boolean | | Adds more space between the popover and its trigger. When `removeSpace` is also set, `addSpace` takes effect. |
20
- | boundary | boundary | | string \| object | | Sets the element that keeps the popover from overflowing, such as a selector string or an HTML element. |
21
- | disabled | disabled | | boolean | | Turns the popover off. A disabled popover doesn't show on hover, focus, touch, or keyboard activation. |
22
- | for | for | | string | | Sets the ID of the trigger element, for when the trigger can't use the `trigger` slot. In most cases, set `slot="trigger"` on the element instead. |
23
- | placement | placement | | string | `top` | Sets where the popover appears in relation to its trigger. Use `top` (the default) or `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover. |
24
- | removeSpace | removespace | | boolean | | Reduces the space between the popover and its trigger, so the popover sits closer to it. Has no effect when `addSpace` is also set. |
17
+ | Properties | Attributes | Modifiers | Type | Default | Description |
18
+ | ----------- | ----------- | --------- | ---------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19
+ | addSpace | addspace | | boolean | | Adds more space between the popover and its trigger. When `removeSpace` is also set, `addSpace` takes effect. |
20
+ | boundary | boundary | | string \| object | | Sets the element that keeps the popover from overflowing, such as a selector string or an HTML element. |
21
+ | disabled | disabled | | boolean | | Turns the popover off. A disabled popover doesn't show on hover, focus, touch, or keyboard activation. |
22
+ | for | for | | string | | Sets the ID of the trigger element, for when the trigger can't use the `trigger` slot. In most cases, set `slot="trigger"` on the element instead. |
23
+ | placement | placement | | string | `top` | Sets the popover's position: above the trigger with `top` (the default), or below it with `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover. |
24
+ | removeSpace | removespace | | boolean | | Reduces the space between the popover and its trigger, so the popover sits closer to it. Has no effect when `addSpace` is also set. |
25
25
 
26
26
  ### Methods
27
27
 
@@ -38,19 +38,19 @@ Shows short supporting content next to a trigger when someone hovers over, focus
38
38
 
39
39
  ### CSS shadow parts
40
40
 
41
- | Name | Description |
42
- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43
- | arrow | The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part. |
44
- | popover | The popover bubble that holds the content. |
45
- | trigger | The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component. |
41
+ | Name | Description |
42
+ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43
+ | arrow | The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position. |
44
+ | popover | The popover bubble that holds the content. |
45
+ | trigger | The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component. |
46
46
 
47
47
  ### CSS custom properties
48
48
 
49
- | Name | Description |
50
- | --------------------------------- | --------------------------------------- |
51
- | --ds-auro-popover-boxshadow-color | Color of the shadow around the popover. |
52
- | --ds-auro-popover-container-color | Background color of the popover. |
53
- | --ds-auro-popover-text-color | Color of the popover text. |
49
+ | Name | Description |
50
+ | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
51
+ | --ds-auro-popover-boxshadow-color | Shadow around the popover bubble. The default is a full `box-shadow` value (offsets, blur, and color), not a color alone. |
52
+ | --ds-auro-popover-container-color | Background color of the popover. |
53
+ | --ds-auro-popover-text-color | Text color of elements placed in the popover, such as a `<p>` or `<span>`. Plain text that isn't wrapped in an element doesn't currently use it, and elements in the `trigger` slot use it too. |
54
54
  <!-- AURO-GENERATED-CONTENT:END -->
55
55
 
56
56
  ## Basic
@@ -78,7 +78,7 @@ Shows short supporting content next to a trigger when someone hovers over, focus
78
78
 
79
79
  ## Apply popover to any type of content
80
80
 
81
- The trigger can be any element, not just buttons or links. The component automatically makes any non-focusable trigger keyboard accessible, including custom elements like `auro-icon` that have no internal focusable element. For icon-based triggers without visible text, `aria-label` is still required to provide an accessible name.
81
+ The trigger can be any element, not just buttons or links. The component automatically makes any non-focusable trigger keyboard accessible, including custom elements that have no internal focusable element, such as `auro-icon`. For icon-based triggers without visible text, `aria-label` is still required to provide an accessible name.
82
82
 
83
83
  > **Accessibility note:** `auro-popover` manages `aria-description` on the focusable elements within the trigger slot as part of its accessibility contract. The popover content becomes the trigger's accessible description, so screen readers announce it on focus. When the trigger is a non-focusable wrapper around focusable content, such as `<div><a href="#">link</a></div>`, the description is applied to each focusable descendant rather than the wrapper itself. The component replaces any existing `aria-description` on affected elements when it first renders and removes it when it disconnects.
84
84
  >
@@ -94,7 +94,7 @@ The trigger can be any element, not just buttons or links. The component automat
94
94
  <auro-icon slot="trigger" category="interface" name="information-stroke" aria-label="More information"></auro-icon>
95
95
  </auro-popover>
96
96
  <br><br>
97
- <!-- Native elements like <abbr> are automatically made keyboard accessible by the component -->
97
+ <!-- The component automatically makes native elements, such as <abbr>, keyboard accessible. -->
98
98
  <p>Congratulations, you just achieved
99
99
  <auro-popover>
100
100
  Most Valuable Passenger: Alaska Airlines' mid-tier elite status level.
@@ -115,7 +115,7 @@ The trigger can be any element, not just buttons or links. The component automat
115
115
  &lt;auro-icon slot="trigger" category="interface" name="information-stroke" aria-label="More information"&gt;&lt;/auro-icon&gt;
116
116
  &lt;/auro-popover&gt;
117
117
  &#10;&lt;br&gt;&lt;br&gt;
118
- &#10;&lt;!-- Native elements like &lt;abbr&gt; are automatically made keyboard accessible by the component --&gt;
118
+ &#10;&lt;!-- The component automatically makes native elements, such as &lt;abbr&gt;, keyboard accessible. --&gt;
119
119
  &lt;p&gt;Congratulations, you just achieved
120
120
  &lt;auro-popover&gt;
121
121
  Most Valuable Passenger: Alaska Airlines' mid-tier elite status level.
@@ -163,14 +163,14 @@ Use the `boundary` property to keep the popover inside a container, shifting it
163
163
  <div style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;">
164
164
  <auro-popover placement="bottom">
165
165
  Popover content!
166
- <auro-button slot="trigger">Popover Test</auro-button>
166
+ <auro-button slot="trigger">Popover test</auro-button>
167
167
  </auro-popover>
168
168
  </div>
169
169
  <strong>Example with boundary set</strong>
170
170
  <div id="popoverBoundary" style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;">
171
171
  <auro-popover class="boundaryExample" placement="bottom">
172
172
  Popover content!
173
- <auro-button slot="trigger">Popover Test</auro-button>
173
+ <auro-button slot="trigger">Popover test</auro-button>
174
174
  </auro-popover>
175
175
  </div>
176
176
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -184,14 +184,14 @@ Use the `boundary` property to keep the popover inside a container, shifting it
184
184
  &lt;div style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;"&gt;
185
185
  &lt;auro-popover placement="bottom"&gt;
186
186
  Popover content!
187
- &lt;auro-button slot="trigger"&gt;Popover Test&lt;/auro-button&gt;
187
+ &lt;auro-button slot="trigger"&gt;Popover test&lt;/auro-button&gt;
188
188
  &lt;/auro-popover&gt;
189
189
  &lt;/div&gt;
190
190
  &#10;&lt;strong&gt;Example with boundary set&lt;/strong&gt;
191
191
  &lt;div id="popoverBoundary" style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;"&gt;
192
192
  &lt;auro-popover class="boundaryExample" placement="bottom"&gt;
193
193
  Popover content!
194
- &lt;auro-button slot="trigger"&gt;Popover Test&lt;/auro-button&gt;
194
+ &lt;auro-button slot="trigger"&gt;Popover test&lt;/auro-button&gt;
195
195
  &lt;/auro-popover&gt;
196
196
  &lt;/div&gt;</code></pre>
197
197
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -297,9 +297,9 @@ Three things to know before reaching for these:
297
297
 
298
298
  **The arrow's visible shape is a pseudo-element.** `::part(arrow)` selects an invisible positioning anchor; the diamond you see is its `::before`. Target `::part(arrow)::before` to change color, shadow, or size. Because the arrow and the bubble are painted separately, recolor both together or the seam between them shows.
299
299
 
300
- **The arrow's position belongs to the component.** Placement is set by Popper as inline styles that are recalculated every time the popover opens, so `transform`, `top`, `left`, and `position` cannot be overridden through `::part(arrow)`. Use the `placement` attribute to choose which side the popover appears on. Resizing the arrow via `::part(arrow)::before` also shifts where it meets the bubble, so verify both `placement="top"` and `placement="bottom"` if you change its dimensions.
300
+ **The arrow's position is set by the component.** It's recalculated every time the popover opens. Use the `placement` attribute to choose which side the popover appears on. Resizing the arrow via `::part(arrow)::before` also shifts where it meets the bubble, so check both `placement="top"` and `placement="bottom"` if you change its dimensions.
301
301
 
302
- **The `trigger` part is empty when you use `for`.** It wraps the trigger slot, so it only has something to style when the trigger is slotted into the component. If you point at an external element with `for`, that element is not inside the wrapper and `::part(trigger)` silently does nothing. Style the external trigger directly instead.
302
+ **The `trigger` part is empty when you use `for`.** It wraps the trigger slot, so it only has something to style when the trigger is slotted into the component. If you point at an external element with `for`, that element isn't inside the wrapper and `::part(trigger)` silently does nothing. Style the external trigger directly instead.
303
303
 
304
304
  To adjust spacing between the popover and its trigger, prefer the `addspace` and `removespace` attributes over part overrides.
305
305
 
@@ -326,7 +326,7 @@ To adjust spacing between the popover and its trigger, prefer the `addspace` and
326
326
  .cssPartsExample auro-popover::part(arrow)::before {
327
327
  background-color: #01426a;
328
328
  }
329
- /* Trigger wrapper — aligns an icon trigger with adjacent text. */
329
+ /* Trigger wrapper: aligns an icon trigger with adjacent text. */
330
330
  .cssPartsExample .iconTrigger auro-popover::part(trigger) {
331
331
  display: inline-flex;
332
332
  align-items: center;
@@ -372,7 +372,7 @@ Match the bubble background or a seam shows. */
372
372
  .cssPartsExample auro-popover::part(arrow)::before {
373
373
  background-color: #01426a;
374
374
  }
375
- /* Trigger wrapper — aligns an icon trigger with adjacent text. */
375
+ /* Trigger wrapper: aligns an icon trigger with adjacent text. */
376
376
  .cssPartsExample .iconTrigger auro-popover::part(trigger) {
377
377
  display: inline-flex;
378
378
  align-items: center;
package/demo/api.min.js CHANGED
@@ -1912,11 +1912,11 @@ const popoverOffsetDistance = 18;
1912
1912
  const popoverOffsetSkidding = 0;
1913
1913
 
1914
1914
  /**
1915
- * Whether `el` is currently in the top layer via the native popover API.
1915
+ * Checks whether an element is currently in the top layer through the native popover API.
1916
1916
  * Gated on `showPopover` (spec-paired with `:popover-open`) plus try/catch
1917
1917
  * for older selector parsers that reject the unknown pseudo-class.
1918
- * @param {Element | null | undefined} el
1919
- * @returns {boolean}
1918
+ * @param {Element | null | undefined} el - The element to check.
1919
+ * @returns {boolean} True if the element is open in the top layer; false otherwise.
1920
1920
  */
1921
1921
  function isTopLayerOpen(el) {
1922
1922
  if (!el || typeof el.showPopover !== "function") {
@@ -2088,12 +2088,12 @@ var tokensCss = i$3`:host{--ds-auro-popover-boxshadow-color: var(--ds-elevation-
2088
2088
  * @slot trigger - The element in this slot triggers hiding and showing the popover.
2089
2089
  *
2090
2090
  * @csspart popover - The popover bubble that holds the content.
2091
- * @csspart arrow - The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
2091
+ * @csspart arrow - The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
2092
2092
  * @csspart trigger - The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
2093
2093
  *
2094
- * @cssprop --ds-auro-popover-boxshadow-color - Color of the shadow around the popover.
2094
+ * @cssprop --ds-auro-popover-boxshadow-color - Shadow around the popover bubble. The default is a full `box-shadow` value (offsets, blur, and color), not a color alone.
2095
2095
  * @cssprop --ds-auro-popover-container-color - Background color of the popover.
2096
- * @cssprop --ds-auro-popover-text-color - Color of the popover text.
2096
+ * @cssprop --ds-auro-popover-text-color - Text color of elements placed in the popover, such as a `<p>` or `<span>`. Plain text that isn't wrapped in an element doesn't currently use it, and elements in the `trigger` slot use it too.
2097
2097
  */
2098
2098
  class AuroPopover extends i {
2099
2099
  constructor() {
@@ -2159,7 +2159,7 @@ class AuroPopover extends i {
2159
2159
  },
2160
2160
 
2161
2161
  /**
2162
- * Sets where the popover appears in relation to its trigger. Use `top` (the default) or `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
2162
+ * Sets the popover's position: above the trigger with `top` (the default), or below it with `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
2163
2163
  * @type {'top' | 'bottom'}
2164
2164
  * @default 'top'
2165
2165
  */
@@ -2305,7 +2305,7 @@ class AuroPopover extends i {
2305
2305
  * NOTE: This component is not currently designed for reinitialization.
2306
2306
  * All setup in firstUpdated() is assumed to run once per instance lifecycle.
2307
2307
  * If the element is removed and later reattached, event bindings,
2308
- * Popper setup, and accessibility wiring will NOT be restored automatically.
2308
+ * Popper setup, and accessibility wiring are NOT restored automatically.
2309
2309
  */
2310
2310
 
2311
2311
  // Add the tag name as an attribute if it is different than the component name
@@ -2461,11 +2461,11 @@ class AuroPopover extends i {
2461
2461
  * - Natively focusable elements (tabIndex >= 0): `<button>`, `<a href>`, `<input>`, and so on.
2462
2462
  * - Custom elements whose shadow DOM contains a focusable descendant (for example, `auro-button`
2463
2463
  * has an inner `<button>`): adding tabindex to the host would create a double tab stop.
2464
- * - Elements where the author has explicitly set tabindex — their intent is respected.
2464
+ * - Elements where the author has explicitly set tabindex: their intent is respected.
2465
2465
  *
2466
2466
  * Known limitation: custom elements with a closed shadow root (mode: 'closed') cannot
2467
- * be inspected — shadowRoot returns null. If such an element has an internal focusable
2468
- * descendant and a host tabIndex of -1, tabindex="0" will be added, potentially
2467
+ * be inspected, because shadowRoot returns null. If such an element has an internal focusable
2468
+ * descendant and a host tabIndex of -1, the component adds tabindex="0", potentially
2469
2469
  * creating a double tab stop. Elements using delegatesFocus avoid this because the
2470
2470
  * browser reflects a non-negative tabIndex on the host.
2471
2471
  *
@@ -2643,7 +2643,7 @@ class AuroPopover extends i {
2643
2643
  /**
2644
2644
  * Toggles the display of the popover content.
2645
2645
  * @private
2646
- * @returns {void} Fires an update lifecycle.
2646
+ * @returns {void}
2647
2647
  */
2648
2648
  toggle() {
2649
2649
  if (!this.popper) {
@@ -2659,7 +2659,7 @@ class AuroPopover extends i {
2659
2659
  /**
2660
2660
  * Hides the popover.
2661
2661
  * @private
2662
- * @returns {void} Fires an update lifecycle.
2662
+ * @returns {void}
2663
2663
  */
2664
2664
  toggleHide() {
2665
2665
  this.isPopoverVisible = false;
@@ -2668,7 +2668,7 @@ class AuroPopover extends i {
2668
2668
  /**
2669
2669
  * Shows the popover.
2670
2670
  * @private
2671
- * @returns {void} Fires an update lifecycle.
2671
+ * @returns {void}
2672
2672
  */
2673
2673
  toggleShow() {
2674
2674
  if (!this.popper || this.disabled) {
package/demo/index.md CHANGED
@@ -15,14 +15,14 @@ Shows short supporting content next to a trigger when someone hovers over, focus
15
15
 
16
16
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
17
17
  <!-- The below content is automatically added from ./../docs/partials/useCases.md -->
18
- The `auro-popover` element should be used in situations where users may:
18
+ Use `auro-popover` to give people more detail without leaving the page, such as:
19
19
 
20
- * interact with an element to get clarification on content offering
21
- * provide definition to iconic imagery
22
- * when helper text is required
20
+ * A short clarification of content they're reading.
21
+ * A definition for an icon.
22
+ * Helper text for a control.
23
23
  <!-- AURO-GENERATED-CONTENT:END -->
24
24
 
25
- ## Developer Notes
25
+ ## Developer notes
26
26
 
27
27
  The popover shows when someone hovers over or focuses the trigger. Hover isn't reliable on touch devices, so a tap, detected with `touchstart`, also toggles the popover.
28
28
 
package/demo/index.min.js CHANGED
@@ -1905,11 +1905,11 @@ const popoverOffsetDistance = 18;
1905
1905
  const popoverOffsetSkidding = 0;
1906
1906
 
1907
1907
  /**
1908
- * Whether `el` is currently in the top layer via the native popover API.
1908
+ * Checks whether an element is currently in the top layer through the native popover API.
1909
1909
  * Gated on `showPopover` (spec-paired with `:popover-open`) plus try/catch
1910
1910
  * for older selector parsers that reject the unknown pseudo-class.
1911
- * @param {Element | null | undefined} el
1912
- * @returns {boolean}
1911
+ * @param {Element | null | undefined} el - The element to check.
1912
+ * @returns {boolean} True if the element is open in the top layer; false otherwise.
1913
1913
  */
1914
1914
  function isTopLayerOpen(el) {
1915
1915
  if (!el || typeof el.showPopover !== "function") {
@@ -2081,12 +2081,12 @@ var tokensCss = i$3`:host{--ds-auro-popover-boxshadow-color: var(--ds-elevation-
2081
2081
  * @slot trigger - The element in this slot triggers hiding and showing the popover.
2082
2082
  *
2083
2083
  * @csspart popover - The popover bubble that holds the content.
2084
- * @csspart arrow - The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
2084
+ * @csspart arrow - The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
2085
2085
  * @csspart trigger - The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
2086
2086
  *
2087
- * @cssprop --ds-auro-popover-boxshadow-color - Color of the shadow around the popover.
2087
+ * @cssprop --ds-auro-popover-boxshadow-color - Shadow around the popover bubble. The default is a full `box-shadow` value (offsets, blur, and color), not a color alone.
2088
2088
  * @cssprop --ds-auro-popover-container-color - Background color of the popover.
2089
- * @cssprop --ds-auro-popover-text-color - Color of the popover text.
2089
+ * @cssprop --ds-auro-popover-text-color - Text color of elements placed in the popover, such as a `<p>` or `<span>`. Plain text that isn't wrapped in an element doesn't currently use it, and elements in the `trigger` slot use it too.
2090
2090
  */
2091
2091
  class AuroPopover extends i {
2092
2092
  constructor() {
@@ -2152,7 +2152,7 @@ class AuroPopover extends i {
2152
2152
  },
2153
2153
 
2154
2154
  /**
2155
- * Sets where the popover appears in relation to its trigger. Use `top` (the default) or `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
2155
+ * Sets the popover's position: above the trigger with `top` (the default), or below it with `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
2156
2156
  * @type {'top' | 'bottom'}
2157
2157
  * @default 'top'
2158
2158
  */
@@ -2298,7 +2298,7 @@ class AuroPopover extends i {
2298
2298
  * NOTE: This component is not currently designed for reinitialization.
2299
2299
  * All setup in firstUpdated() is assumed to run once per instance lifecycle.
2300
2300
  * If the element is removed and later reattached, event bindings,
2301
- * Popper setup, and accessibility wiring will NOT be restored automatically.
2301
+ * Popper setup, and accessibility wiring are NOT restored automatically.
2302
2302
  */
2303
2303
 
2304
2304
  // Add the tag name as an attribute if it is different than the component name
@@ -2454,11 +2454,11 @@ class AuroPopover extends i {
2454
2454
  * - Natively focusable elements (tabIndex >= 0): `<button>`, `<a href>`, `<input>`, and so on.
2455
2455
  * - Custom elements whose shadow DOM contains a focusable descendant (for example, `auro-button`
2456
2456
  * has an inner `<button>`): adding tabindex to the host would create a double tab stop.
2457
- * - Elements where the author has explicitly set tabindex — their intent is respected.
2457
+ * - Elements where the author has explicitly set tabindex: their intent is respected.
2458
2458
  *
2459
2459
  * Known limitation: custom elements with a closed shadow root (mode: 'closed') cannot
2460
- * be inspected — shadowRoot returns null. If such an element has an internal focusable
2461
- * descendant and a host tabIndex of -1, tabindex="0" will be added, potentially
2460
+ * be inspected, because shadowRoot returns null. If such an element has an internal focusable
2461
+ * descendant and a host tabIndex of -1, the component adds tabindex="0", potentially
2462
2462
  * creating a double tab stop. Elements using delegatesFocus avoid this because the
2463
2463
  * browser reflects a non-negative tabIndex on the host.
2464
2464
  *
@@ -2636,7 +2636,7 @@ class AuroPopover extends i {
2636
2636
  /**
2637
2637
  * Toggles the display of the popover content.
2638
2638
  * @private
2639
- * @returns {void} Fires an update lifecycle.
2639
+ * @returns {void}
2640
2640
  */
2641
2641
  toggle() {
2642
2642
  if (!this.popper) {
@@ -2652,7 +2652,7 @@ class AuroPopover extends i {
2652
2652
  /**
2653
2653
  * Hides the popover.
2654
2654
  * @private
2655
- * @returns {void} Fires an update lifecycle.
2655
+ * @returns {void}
2656
2656
  */
2657
2657
  toggleHide() {
2658
2658
  this.isPopoverVisible = false;
@@ -2661,7 +2661,7 @@ class AuroPopover extends i {
2661
2661
  /**
2662
2662
  * Shows the popover.
2663
2663
  * @private
2664
- * @returns {void} Fires an update lifecycle.
2664
+ * @returns {void}
2665
2665
  */
2666
2666
  toggleShow() {
2667
2667
  if (!this.popper || this.disabled) {
package/demo/readme.md CHANGED
@@ -32,11 +32,11 @@ Shows short supporting content next to a trigger when someone hovers over, focus
32
32
 
33
33
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
34
  <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
- The `auro-popover` element should be used in situations where users may:
35
+ Use `auro-popover` to give people more detail without leaving the page, such as:
36
36
 
37
- * interact with an element to get clarification on content offering
38
- * provide definition to iconic imagery
39
- * when helper text is required
37
+ * A short clarification of content they're reading.
38
+ * A definition for an icon.
39
+ * Helper text for a control.
40
40
  <!-- AURO-GENERATED-CONTENT:END -->
41
41
 
42
42
  ## Install
package/dist/index.d.ts CHANGED
@@ -87,7 +87,7 @@ export type AuroPopoverProps = {
87
87
  disabled?: AuroPopover["disabled"];
88
88
  /** Sets the ID of the trigger element, for when the trigger can't use the `trigger` slot. In most cases, set `slot="trigger"` on the element instead. */
89
89
  for?: AuroPopover["for"];
90
- /** Sets where the popover appears in relation to its trigger. Use `top` (the default) or `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover. */
90
+ /** Sets the popover's position: above the trigger with `top` (the default), or below it with `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover. */
91
91
  placement?: AuroPopover["placement"];
92
92
  /** Reduces the space between the popover and its trigger, so the popover sits closer to it. Has no effect when `addSpace` is also set. */
93
93
  removespace?: AuroPopover["removeSpace"];
@@ -126,7 +126,7 @@ export type AuroPopoverSolidJsProps = {
126
126
  "prop:disabled"?: AuroPopover["disabled"];
127
127
  /** Sets the ID of the trigger element, for when the trigger can't use the `trigger` slot. In most cases, set `slot="trigger"` on the element instead. */
128
128
  "prop:for"?: AuroPopover["for"];
129
- /** Sets where the popover appears in relation to its trigger. Use `top` (the default) or `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover. */
129
+ /** Sets the popover's position: above the trigger with `top` (the default), or below it with `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover. */
130
130
  "prop:placement"?: AuroPopover["placement"];
131
131
  /** Reduces the space between the popover and its trigger, so the popover sits closer to it. Has no effect when `addSpace` is also set. */
132
132
  "bool:removespace"?: AuroPopover["removeSpace"];
@@ -178,7 +178,7 @@ export type CustomElements = {
178
178
  * - `boundary`: Sets the element that keeps the popover from overflowing, such as a selector string or an HTML element.
179
179
  * - `disabled`: Turns the popover off. A disabled popover doesn't show on hover, focus, touch, or keyboard activation.
180
180
  * - `for`: Sets the ID of the trigger element, for when the trigger can't use the `trigger` slot. In most cases, set `slot="trigger"` on the element instead.
181
- * - `placement`: Sets where the popover appears in relation to its trigger. Use `top` (the default) or `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
181
+ * - `placement`: Sets the popover's position: above the trigger with `top` (the default), or below it with `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
182
182
  * - `removespace`/`removeSpace`: Reduces the space between the popover and its trigger, so the popover sits closer to it. Has no effect when `addSpace` is also set.
183
183
  * - `_addedTabIndex`: undefined (property only)
184
184
  * - `_onBodyMouseover`: undefined (property only)
@@ -208,15 +208,15 @@ export type CustomElements = {
208
208
  *
209
209
  * CSS variables available for styling the component.
210
210
  *
211
- * - `--ds-auro-popover-boxshadow-color`: Color of the shadow around the popover. (default: `undefined`)
211
+ * - `--ds-auro-popover-boxshadow-color`: Shadow around the popover bubble. The default is a full `box-shadow` value (offsets, blur, and color), not a color alone. (default: `undefined`)
212
212
  * - `--ds-auro-popover-container-color`: Background color of the popover. (default: `undefined`)
213
- * - `--ds-auro-popover-text-color`: Color of the popover text. (default: `undefined`)
213
+ * - `--ds-auro-popover-text-color`: Text color of elements placed in the popover, such as a `<p>` or `<span>`. Plain text that isn't wrapped in an element doesn't currently use it, and elements in the `trigger` slot use it too. (default: `undefined`)
214
214
  *
215
215
  * ## CSS Parts
216
216
  *
217
217
  * Custom selectors for styling elements within the component.
218
218
  *
219
- * - `arrow`: The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
219
+ * - `arrow`: The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
220
220
  * - `popover`: The popover bubble that holds the content.
221
221
  * - `trigger`: The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
222
222
  */
@@ -244,7 +244,7 @@ export type CustomElementsSolidJs = {
244
244
  * - `boundary`: Sets the element that keeps the popover from overflowing, such as a selector string or an HTML element.
245
245
  * - `disabled`: Turns the popover off. A disabled popover doesn't show on hover, focus, touch, or keyboard activation.
246
246
  * - `for`: Sets the ID of the trigger element, for when the trigger can't use the `trigger` slot. In most cases, set `slot="trigger"` on the element instead.
247
- * - `placement`: Sets where the popover appears in relation to its trigger. Use `top` (the default) or `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
247
+ * - `placement`: Sets the popover's position: above the trigger with `top` (the default), or below it with `bottom`. The popover flips to the opposite side when there isn't room. Changing this after the first render does not currently move the popover.
248
248
  * - `removespace`/`removeSpace`: Reduces the space between the popover and its trigger, so the popover sits closer to it. Has no effect when `addSpace` is also set.
249
249
  * - `_addedTabIndex`: undefined (property only)
250
250
  * - `_onBodyMouseover`: undefined (property only)
@@ -274,15 +274,15 @@ export type CustomElementsSolidJs = {
274
274
  *
275
275
  * CSS variables available for styling the component.
276
276
  *
277
- * - `--ds-auro-popover-boxshadow-color`: Color of the shadow around the popover. (default: `undefined`)
277
+ * - `--ds-auro-popover-boxshadow-color`: Shadow around the popover bubble. The default is a full `box-shadow` value (offsets, blur, and color), not a color alone. (default: `undefined`)
278
278
  * - `--ds-auro-popover-container-color`: Background color of the popover. (default: `undefined`)
279
- * - `--ds-auro-popover-text-color`: Color of the popover text. (default: `undefined`)
279
+ * - `--ds-auro-popover-text-color`: Text color of elements placed in the popover, such as a `<p>` or `<span>`. Plain text that isn't wrapped in an element doesn't currently use it, and elements in the `trigger` slot use it too. (default: `undefined`)
280
280
  *
281
281
  * ## CSS Parts
282
282
  *
283
283
  * Custom selectors for styling elements within the component.
284
284
  *
285
- * - `arrow`: The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
285
+ * - `arrow`: The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
286
286
  * - `popover`: The popover bubble that holds the content.
287
287
  * - `trigger`: The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
288
288
  */
@@ -295,11 +295,11 @@ export type CustomElementsSolidJs = {
295
295
  };
296
296
 
297
297
  export type CustomCssProperties = {
298
- /** Color of the shadow around the popover. */
298
+ /** Shadow around the popover bubble. The default is a full `box-shadow` value (offsets, blur, and color), not a color alone. */
299
299
  "--ds-auro-popover-boxshadow-color"?: string;
300
300
  /** Background color of the popover. */
301
301
  "--ds-auro-popover-container-color"?: string;
302
- /** Color of the popover text. */
302
+ /** Text color of elements placed in the popover, such as a `<p>` or `<span>`. Plain text that isn't wrapped in an element doesn't currently use it, and elements in the `trigger` slot use it too. */
303
303
  "--ds-auro-popover-text-color"?: string;
304
304
  };
305
305
 
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem-dev/auro-popover",
10
- "version": "0.0.0-pr141.0",
10
+ "version": "0.0.0-pr141.2",
11
11
  "description": "auro-popover HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",