@aurodesignsystem-dev/auro-popover 0.0.0-pr135.1 → 0.0.0-pr136.0
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.html +0 -1
- package/demo/api.md +10 -121
- package/demo/api.min.js +42 -103
- package/demo/index.min.js +42 -103
- package/dist/auro-popover-Bu7mQ0Hu.js +19 -0
- package/dist/index.d.ts +4 -28
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +5 -5
- package/dist/auro-popover-C5oqJxu2.js +0 -19
package/demo/api.html
CHANGED
package/demo/api.md
CHANGED
|
@@ -9,12 +9,12 @@ The `auro-popover` element attaches to another element and displays on hover.
|
|
|
9
9
|
|
|
10
10
|
| Properties | Attributes | Modifiers | Type | Default | Description |
|
|
11
11
|
| ----------- | ----------- | --------- | ---------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
12
|
-
| addSpace |
|
|
12
|
+
| addSpace | addSpace | | boolean | | Adds additional top and bottom space around the appearance of the popover in relation to the trigger. |
|
|
13
13
|
| boundary | boundary | | string \| object | | The element to use as the boundary for the popover. Can be a query selector or an HTML element. |
|
|
14
14
|
| disabled | disabled | | boolean | | Disables the popover from showing on hover and focus. |
|
|
15
15
|
| for | for | | string | | Directly associates the popover with a trigger element with the given ID. In most cases, this should not be necessary and set `slot="trigger"` on the element instead. |
|
|
16
16
|
| placement | placement | | string | `top` | Position for popover in relation to the element {'top' \| 'bottom'}. |
|
|
17
|
-
| removeSpace |
|
|
17
|
+
| removeSpace | removeSpace | | boolean | | Removes top and bottom space around the appearance of the popover in relation to the trigger. |
|
|
18
18
|
| | data-show | | boolean | `false` | Whether the popover is currently visible. Reflected as the `data-show`<br>attribute so host-level CSS selectors (e.g. `:host([data-show])`) work.<br>Also drives `aria-hidden` on the popover div in the template. |
|
|
19
19
|
|
|
20
20
|
### Methods
|
|
@@ -29,14 +29,6 @@ The `auro-popover` element attaches to another element and displays on hover.
|
|
|
29
29
|
| --------- | ----------------------------------------------------------------- |
|
|
30
30
|
| (default) | Default unnamed slot for the use of popover content |
|
|
31
31
|
| trigger | The element in this slot triggers hiding and showing the popover. |
|
|
32
|
-
|
|
33
|
-
### CSS Shadow Parts
|
|
34
|
-
|
|
35
|
-
| Name | Description |
|
|
36
|
-
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
37
|
-
| arrow | Apply CSS to the arrow's positioning anchor. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to restyle color, shadow, or size. Arrow position is set by Popper as inline styles and cannot be overridden through this part. |
|
|
38
|
-
| popover | Apply CSS to the popover bubble container. |
|
|
39
|
-
| trigger | Apply CSS to the wrapper around the trigger slot. Use to correct alignment between the trigger and the popover. |
|
|
40
32
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
41
33
|
|
|
42
34
|
## Basic
|
|
@@ -115,12 +107,12 @@ The trigger can be any element, not just buttons or links. The component automat
|
|
|
115
107
|
|
|
116
108
|
### Add Space Around Popover
|
|
117
109
|
|
|
118
|
-
Use the `
|
|
110
|
+
Use the `addSpace` attribute to add more space between the popover and it's trigger.
|
|
119
111
|
|
|
120
112
|
<div class="exampleWrapper">
|
|
121
113
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/add-space.html) -->
|
|
122
114
|
<!-- The below content is automatically added from ../apiExamples/add-space.html -->
|
|
123
|
-
<auro-popover
|
|
115
|
+
<auro-popover addSpace>
|
|
124
116
|
Notice this popover is a little<br>further away from the trigger.
|
|
125
117
|
<auro-button slot="trigger">Popover w/additional space above</auro-button>
|
|
126
118
|
</auro-popover>
|
|
@@ -131,7 +123,7 @@ Use the `addspace` attribute to add more space between the popover and it's trig
|
|
|
131
123
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/add-space.html) -->
|
|
132
124
|
<!-- The below code snippet is automatically added from ../apiExamples/add-space.html -->
|
|
133
125
|
|
|
134
|
-
<pre class="language-html"><code class="language-html"><auro-popover
|
|
126
|
+
<pre class="language-html"><code class="language-html"><auro-popover addSpace>
|
|
135
127
|
Notice this popover is a little<br>further away from the trigger.
|
|
136
128
|
<auro-button slot="trigger">Popover w/additional space above</auro-button>
|
|
137
129
|
</auro-popover></code></pre>
|
|
@@ -245,16 +237,16 @@ Use the `placement` attribute to set the position of the popover in relation to
|
|
|
245
237
|
|
|
246
238
|
### Remove Space Around Popover
|
|
247
239
|
|
|
248
|
-
Use the `
|
|
240
|
+
Use the `removeSpace` attribute to lessen the space between the popover and it's trigger.
|
|
249
241
|
|
|
250
242
|
<div class="exampleWrapper">
|
|
251
243
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/remove-space.html) -->
|
|
252
244
|
<!-- The below content is automatically added from ../apiExamples/remove-space.html -->
|
|
253
|
-
<auro-popover
|
|
245
|
+
<auro-popover removeSpace>
|
|
254
246
|
Notice this popover is a little<br>closer to the trigger.
|
|
255
247
|
<auro-button slot="trigger">Popover w/less space above</auro-button>
|
|
256
248
|
</auro-popover>
|
|
257
|
-
<auro-popover placement="bottom"
|
|
249
|
+
<auro-popover placement="bottom" removeSpace>
|
|
258
250
|
Notice this popover is a little<br>closer to the trigger.
|
|
259
251
|
<auro-button slot="trigger">Popover w/less space below</auro-button>
|
|
260
252
|
</auro-popover>
|
|
@@ -265,11 +257,11 @@ Use the `removespace` attribute to lessen the space between the popover and it's
|
|
|
265
257
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/remove-space.html) -->
|
|
266
258
|
<!-- The below code snippet is automatically added from ../apiExamples/remove-space.html -->
|
|
267
259
|
|
|
268
|
-
<pre class="language-html"><code class="language-html"><auro-popover
|
|
260
|
+
<pre class="language-html"><code class="language-html"><auro-popover removeSpace>
|
|
269
261
|
Notice this popover is a little<br>closer to the trigger.
|
|
270
262
|
<auro-button slot="trigger">Popover w/less space above</auro-button>
|
|
271
263
|
</auro-popover>
|
|
272
|
-
<auro-popover placement="bottom"
|
|
264
|
+
<auro-popover placement="bottom" removeSpace>
|
|
273
265
|
Notice this popover is a little<br>closer to the trigger.
|
|
274
266
|
<auro-button slot="trigger">Popover w/less space below</auro-button>
|
|
275
267
|
</auro-popover></code></pre>
|
|
@@ -333,109 +325,6 @@ In the event that a hyperlink UI is desired, it is recommended to use the `role=
|
|
|
333
325
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
334
326
|
</auro-accordion>
|
|
335
327
|
|
|
336
|
-
## Style Component with CSS Shadow Parts
|
|
337
|
-
|
|
338
|
-
The component exposes the `popover` bubble, the `arrow`, and the `trigger` wrapper as CSS shadow parts, so they can be styled from outside the shadow DOM.
|
|
339
|
-
|
|
340
|
-
Two things to know before reaching for these:
|
|
341
|
-
|
|
342
|
-
**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 will show.
|
|
343
|
-
|
|
344
|
-
**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.
|
|
345
|
-
|
|
346
|
-
To adjust spacing between the popover and its trigger, prefer the `addspace` and `removespace` attributes over part overrides.
|
|
347
|
-
|
|
348
|
-
<div class="exampleWrapper">
|
|
349
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/cssParts.html) -->
|
|
350
|
-
<!-- The below content is automatically added from ../apiExamples/cssParts.html -->
|
|
351
|
-
<!-- Selectors are scoped to .cssPartsExample so this demo does not restyle
|
|
352
|
-
other popovers on the page. Keep every line in this <style> block at column
|
|
353
|
-
zero with no blank lines: the docs generator indents injected examples, and
|
|
354
|
-
markdown turns 4-space-indented lines into a code block, which silently
|
|
355
|
-
breaks the stylesheet. -->
|
|
356
|
-
<style>
|
|
357
|
-
/* The bubble container. */
|
|
358
|
-
.cssPartsExample auro-popover::part(popover) {
|
|
359
|
-
color: #fff;
|
|
360
|
-
border-radius: 0;
|
|
361
|
-
background-color: #01426a;
|
|
362
|
-
}
|
|
363
|
-
/* The visible arrow is the ::before pseudo-element of the arrow part, so
|
|
364
|
-
recolor that rather than ::part(arrow) itself. Keep it matched to the
|
|
365
|
-
bubble's background or the seam between them will show. */
|
|
366
|
-
.cssPartsExample auro-popover::part(arrow)::before {
|
|
367
|
-
box-shadow: none;
|
|
368
|
-
background-color: #01426a;
|
|
369
|
-
}
|
|
370
|
-
/* The trigger wrapper. Use it to line an icon trigger up with adjacent text
|
|
371
|
-
instead of resorting to layout workarounds. */
|
|
372
|
-
.cssPartsExample .iconTrigger auro-popover::part(trigger) {
|
|
373
|
-
display: inline-flex;
|
|
374
|
-
align-items: center;
|
|
375
|
-
}
|
|
376
|
-
</style>
|
|
377
|
-
<div class="cssPartsExample">
|
|
378
|
-
<auro-popover>
|
|
379
|
-
This bubble and its arrow are restyled from outside the shadow DOM.
|
|
380
|
-
<auro-button slot="trigger">Popover Test</auro-button>
|
|
381
|
-
</auro-popover>
|
|
382
|
-
<p class="iconTrigger">
|
|
383
|
-
Checked baggage fees apply
|
|
384
|
-
<auro-popover placement="bottom">
|
|
385
|
-
Fees vary by route and fare class.
|
|
386
|
-
<auro-icon slot="trigger" category="interface" name="info-stroke" aria-label="More information"></auro-icon>
|
|
387
|
-
</auro-popover>
|
|
388
|
-
</p>
|
|
389
|
-
</div>
|
|
390
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
391
|
-
</div>
|
|
392
|
-
<auro-accordion alignRight>
|
|
393
|
-
<span slot="trigger">See code</span>
|
|
394
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/cssParts.html) -->
|
|
395
|
-
<!-- The below code snippet is automatically added from ../apiExamples/cssParts.html -->
|
|
396
|
-
|
|
397
|
-
<pre class="language-html"><code class="language-html"><!-- Selectors are scoped to .cssPartsExample so this demo does not restyle
|
|
398
|
-
other popovers on the page. Keep every line in this <style> block at column
|
|
399
|
-
zero with no blank lines: the docs generator indents injected examples, and
|
|
400
|
-
markdown turns 4-space-indented lines into a code block, which silently
|
|
401
|
-
breaks the stylesheet. -->
|
|
402
|
-
<style>
|
|
403
|
-
/* The bubble container. */
|
|
404
|
-
.cssPartsExample auro-popover::part(popover) {
|
|
405
|
-
color: #fff;
|
|
406
|
-
border-radius: 0;
|
|
407
|
-
background-color: #01426a;
|
|
408
|
-
}
|
|
409
|
-
/* The visible arrow is the ::before pseudo-element of the arrow part, so
|
|
410
|
-
recolor that rather than ::part(arrow) itself. Keep it matched to the
|
|
411
|
-
bubble's background or the seam between them will show. */
|
|
412
|
-
.cssPartsExample auro-popover::part(arrow)::before {
|
|
413
|
-
box-shadow: none;
|
|
414
|
-
background-color: #01426a;
|
|
415
|
-
}
|
|
416
|
-
/* The trigger wrapper. Use it to line an icon trigger up with adjacent text
|
|
417
|
-
instead of resorting to layout workarounds. */
|
|
418
|
-
.cssPartsExample .iconTrigger auro-popover::part(trigger) {
|
|
419
|
-
display: inline-flex;
|
|
420
|
-
align-items: center;
|
|
421
|
-
}
|
|
422
|
-
</style>
|
|
423
|
-
<div class="cssPartsExample">
|
|
424
|
-
<auro-popover>
|
|
425
|
-
This bubble and its arrow are restyled from outside the shadow DOM.
|
|
426
|
-
<auro-button slot="trigger">Popover Test</auro-button>
|
|
427
|
-
</auro-popover>
|
|
428
|
-
<p class="iconTrigger">
|
|
429
|
-
Checked baggage fees apply
|
|
430
|
-
<auro-popover placement="bottom">
|
|
431
|
-
Fees vary by route and fare class.
|
|
432
|
-
<auro-icon slot="trigger" category="interface" name="info-stroke" aria-label="More information"></auro-icon>
|
|
433
|
-
</auro-popover>
|
|
434
|
-
</p>
|
|
435
|
-
</div></code></pre>
|
|
436
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
437
|
-
</auro-accordion>
|
|
438
|
-
|
|
439
328
|
## Restyle Component with CSS Variables
|
|
440
329
|
|
|
441
330
|
The component may be restyled by changing the values of the following token(s).
|
package/demo/api.min.js
CHANGED
|
@@ -1998,10 +1998,7 @@ class Popover {
|
|
|
1998
1998
|
return;
|
|
1999
1999
|
}
|
|
2000
2000
|
const reference = state.elements.reference;
|
|
2001
|
-
if (
|
|
2002
|
-
!reference ||
|
|
2003
|
-
typeof reference.getBoundingClientRect !== "function"
|
|
2004
|
-
) {
|
|
2001
|
+
if (!reference || typeof reference.getBoundingClientRect !== "function") {
|
|
2005
2002
|
return;
|
|
2006
2003
|
}
|
|
2007
2004
|
const r = reference.getBoundingClientRect();
|
|
@@ -2052,10 +2049,10 @@ class Popover {
|
|
|
2052
2049
|
}
|
|
2053
2050
|
}
|
|
2054
2051
|
|
|
2055
|
-
var colorCss = i$3`::slotted(*):not([onDark]),::slotted(*):not([appearance=inverse]){color:var(--ds-auro-popover-text-color)}.popover{background-color:var(--ds-auro-popover-container-color);box-shadow:var(--ds-auro-popover-boxshadow-color)}.arrow:before{background-color:var(--ds-auro-popover-container-color)}
|
|
2052
|
+
var colorCss = i$3`::slotted(*):not([onDark]),::slotted(*):not([appearance=inverse]){color:var(--ds-auro-popover-text-color)}.popover{background-color:var(--ds-auro-popover-container-color);box-shadow:var(--ds-auro-popover-boxshadow-color)}.arrow:before{background-color:var(--ds-auro-popover-container-color);box-shadow:2px 2px 1px 0 var(--ds-auro-popover-boxshadow-color)}
|
|
2056
2053
|
`;
|
|
2057
2054
|
|
|
2058
|
-
var styleCss = i$3`.body-default{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-emphasized-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-emphasized-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-emphasized-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-variant-ligatures:none;font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-variant-ligatures:none;font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host(:not([data-show])) .popover,:host([disabled]) .popover,:host([addspace]) :host(:not([data-show])) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, .25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1 * (var(--ds-size-200, 1rem) + var(--ds-size-50, .25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1 * (var(--ds-size-200, 1rem) + var(--ds-size-50, .25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 400)}:host([removespace]) .popover{margin:calc(-1 * (var(--ds-size-50, .25rem) + 1px)) 0!important}:host([addspace]) .popover{margin:var(--ds-size-200, 1rem) 0!important}:host([addspace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addspace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1 * var(--ds-size-500, 2.5rem))}:host([addspace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1 * var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border:0;overflow:visible;border-radius:var(--ds-border-radius, .375rem)}@media screen and (min-width:576px){.popover{max-width:50%}}@media screen and (min-width:768px){.popover{max-width:40%}}@media screen and (min-width:1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1 * (var(--ds-size-100, .5rem) + var(--ds-size-25, .125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1 * var(--ds-size-200, 1rem));left:calc(-1 * var(--ds-size-75, .375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1 * (var(--ds-size-100, .5rem) + var(--ds-size-25, .125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, .25rem);right:calc(-1 * var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative}.arrow:before{position:absolute;width:var(--ds-size-150, .75rem);height:var(--ds-size-150, .75rem);content:""}
|
|
2055
|
+
var styleCss = i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, .875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, .75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, .625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host(:not([data-show])) .popover,:host([disabled]) .popover,:host([addSpace]) :host(:not([data-show])) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, .25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1 * (var(--ds-size-200, 1rem) + var(--ds-size-50, .25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1 * (var(--ds-size-200, 1rem) + var(--ds-size-50, .25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 400)}:host([removeSpace]) .popover{margin:calc(-1 * (var(--ds-size-50, .25rem) + 1px)) 0!important}:host([addSpace]) .popover{margin:var(--ds-size-200, 1rem) 0!important}:host([addSpace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addSpace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1 * var(--ds-size-500, 2.5rem))}:host([addSpace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1 * var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border:0;overflow:visible;border-radius:var(--ds-border-radius, .375rem)}@media screen and (min-width:576px){.popover{max-width:50%}}@media screen and (min-width:768px){.popover{max-width:40%}}@media screen and (min-width:1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1 * (var(--ds-size-100, .5rem) + var(--ds-size-25, .125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1 * var(--ds-size-200, 1rem));left:calc(-1 * var(--ds-size-75, .375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1 * (var(--ds-size-100, .5rem) + var(--ds-size-25, .125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, .25rem);right:calc(-1 * var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative;margin-top:-var(--ds-size-100,.5rem)}.arrow:before{position:absolute;width:var(--ds-size-150, .75rem);height:var(--ds-size-150, .75rem);content:""}
|
|
2059
2056
|
`;
|
|
2060
2057
|
|
|
2061
2058
|
var tokensCss = i$3`:host{--ds-auro-popover-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, .15));--ds-auro-popover-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-popover-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}
|
|
@@ -2071,10 +2068,6 @@ var tokensCss = i$3`:host{--ds-auro-popover-boxshadow-color: var(--ds-elevation-
|
|
|
2071
2068
|
*
|
|
2072
2069
|
* @slot - Default unnamed slot for the use of popover content
|
|
2073
2070
|
* @slot trigger - The element in this slot triggers hiding and showing the popover.
|
|
2074
|
-
*
|
|
2075
|
-
* @csspart popover - Apply CSS to the popover bubble container.
|
|
2076
|
-
* @csspart arrow - Apply CSS to the arrow's positioning anchor. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to restyle color, shadow, or size. Arrow position is set by Popper as inline styles and cannot be overridden through this part.
|
|
2077
|
-
* @csspart trigger - Apply CSS to the wrapper around the trigger slot. Use to correct alignment between the trigger and the popover.
|
|
2078
2071
|
*/
|
|
2079
2072
|
class AuroPopover extends i {
|
|
2080
2073
|
constructor() {
|
|
@@ -2113,8 +2106,7 @@ class AuroPopover extends i {
|
|
|
2113
2106
|
*/
|
|
2114
2107
|
addSpace: {
|
|
2115
2108
|
type: Boolean,
|
|
2116
|
-
reflect: true
|
|
2117
|
-
attribute: "addspace",
|
|
2109
|
+
reflect: true
|
|
2118
2110
|
},
|
|
2119
2111
|
|
|
2120
2112
|
/**
|
|
@@ -2128,7 +2120,7 @@ class AuroPopover extends i {
|
|
|
2128
2120
|
*/
|
|
2129
2121
|
disabled: {
|
|
2130
2122
|
type: Boolean,
|
|
2131
|
-
reflect: true
|
|
2123
|
+
reflect: true
|
|
2132
2124
|
},
|
|
2133
2125
|
|
|
2134
2126
|
/**
|
|
@@ -2136,7 +2128,7 @@ class AuroPopover extends i {
|
|
|
2136
2128
|
*/
|
|
2137
2129
|
for: {
|
|
2138
2130
|
type: String,
|
|
2139
|
-
reflect: true
|
|
2131
|
+
reflect: true
|
|
2140
2132
|
},
|
|
2141
2133
|
|
|
2142
2134
|
/**
|
|
@@ -2151,8 +2143,7 @@ class AuroPopover extends i {
|
|
|
2151
2143
|
*/
|
|
2152
2144
|
removeSpace: {
|
|
2153
2145
|
type: Boolean,
|
|
2154
|
-
reflect: true
|
|
2155
|
-
attribute: "removespace",
|
|
2146
|
+
reflect: true
|
|
2156
2147
|
},
|
|
2157
2148
|
|
|
2158
2149
|
/**
|
|
@@ -2164,10 +2155,10 @@ class AuroPopover extends i {
|
|
|
2164
2155
|
isPopoverVisible: {
|
|
2165
2156
|
type: Boolean,
|
|
2166
2157
|
reflect: true,
|
|
2167
|
-
attribute:
|
|
2158
|
+
attribute: 'data-show',
|
|
2168
2159
|
converter: {
|
|
2169
2160
|
fromAttribute: (value) => value !== null,
|
|
2170
|
-
toAttribute: (value) => (value ?
|
|
2161
|
+
toAttribute: (value) => (value ? 'true' : null),
|
|
2171
2162
|
},
|
|
2172
2163
|
},
|
|
2173
2164
|
};
|
|
@@ -2218,16 +2209,10 @@ class AuroPopover extends i {
|
|
|
2218
2209
|
if (this.trigger) {
|
|
2219
2210
|
// Remove listeners attached to the trigger element.
|
|
2220
2211
|
if (this._onTriggerMouseEnter) {
|
|
2221
|
-
this._eventTarget.removeEventListener(
|
|
2222
|
-
"mouseenter",
|
|
2223
|
-
this._onTriggerMouseEnter,
|
|
2224
|
-
);
|
|
2212
|
+
this._eventTarget.removeEventListener("mouseenter", this._onTriggerMouseEnter);
|
|
2225
2213
|
}
|
|
2226
2214
|
if (this._onTriggerMouseLeave) {
|
|
2227
|
-
this._eventTarget.removeEventListener(
|
|
2228
|
-
"mouseleave",
|
|
2229
|
-
this._onTriggerMouseLeave,
|
|
2230
|
-
);
|
|
2215
|
+
this._eventTarget.removeEventListener("mouseleave", this._onTriggerMouseLeave);
|
|
2231
2216
|
}
|
|
2232
2217
|
if (this._onTriggerFocus) {
|
|
2233
2218
|
this.trigger.removeEventListener("focusin", this._onTriggerFocus);
|
|
@@ -2242,23 +2227,18 @@ class AuroPopover extends i {
|
|
|
2242
2227
|
// Clean up aria-description and its sync listener set in firstUpdated.
|
|
2243
2228
|
// Prevents stale descriptions if the trigger is reused after disconnect.
|
|
2244
2229
|
if (this._onSlotChange) {
|
|
2245
|
-
this.shadowRoot
|
|
2246
|
-
?.querySelector("slot:not([name])")
|
|
2247
|
-
?.removeEventListener("slotchange", this._onSlotChange);
|
|
2230
|
+
this.shadowRoot?.querySelector("slot:not([name])")?.removeEventListener("slotchange", this._onSlotChange);
|
|
2248
2231
|
}
|
|
2249
2232
|
// Remove aria-description from every element that received it in
|
|
2250
2233
|
// firstUpdated (focusable descendants or the trigger itself).
|
|
2251
|
-
for (const target of this._ariaDescriptionTargets || [this.trigger]) {
|
|
2234
|
+
for (const target of (this._ariaDescriptionTargets || [this.trigger])) {
|
|
2252
2235
|
target.removeAttribute("aria-description");
|
|
2253
2236
|
}
|
|
2254
2237
|
|
|
2255
2238
|
// Remove tabindex only if the component added it and the current value
|
|
2256
2239
|
// still matches the value managed by the component. This avoids removing
|
|
2257
2240
|
// an author-updated tabindex that was set after connection.
|
|
2258
|
-
if (
|
|
2259
|
-
this._addedTabIndex &&
|
|
2260
|
-
this.trigger.getAttribute("tabindex") === "0"
|
|
2261
|
-
) {
|
|
2241
|
+
if (this._addedTabIndex && this.trigger.getAttribute("tabindex") === "0") {
|
|
2262
2242
|
this.trigger.removeAttribute("tabindex");
|
|
2263
2243
|
}
|
|
2264
2244
|
}
|
|
@@ -2273,10 +2253,7 @@ class AuroPopover extends i {
|
|
|
2273
2253
|
}
|
|
2274
2254
|
|
|
2275
2255
|
// Destroy the Popper.js instance to release its internal references.
|
|
2276
|
-
if (
|
|
2277
|
-
this.popper?.popper &&
|
|
2278
|
-
typeof this.popper.popper.destroy === "function"
|
|
2279
|
-
) {
|
|
2256
|
+
if (this.popper?.popper && typeof this.popper.popper.destroy === "function") {
|
|
2280
2257
|
this.popper.popper.destroy();
|
|
2281
2258
|
this.popper.popper = null;
|
|
2282
2259
|
}
|
|
@@ -2347,15 +2324,9 @@ class AuroPopover extends i {
|
|
|
2347
2324
|
);
|
|
2348
2325
|
|
|
2349
2326
|
this._onBodyMouseover = (evt) => this.handleMouseoverEvent(evt);
|
|
2350
|
-
this._onTriggerMouseEnter = () => {
|
|
2351
|
-
|
|
2352
|
-
};
|
|
2353
|
-
this._onTriggerMouseLeave = () => {
|
|
2354
|
-
this.toggleHide();
|
|
2355
|
-
};
|
|
2356
|
-
this._onTriggerFocus = () => {
|
|
2357
|
-
this.toggleShow();
|
|
2358
|
-
};
|
|
2327
|
+
this._onTriggerMouseEnter = () => { this.toggleShow(); };
|
|
2328
|
+
this._onTriggerMouseLeave = () => { this.toggleHide(); };
|
|
2329
|
+
this._onTriggerFocus = () => { this.toggleShow(); };
|
|
2359
2330
|
this._onTriggerBlur = (event) => {
|
|
2360
2331
|
// Only hide if focus leaves the trigger and popover entirely, not
|
|
2361
2332
|
// when moving between focusable children within the trigger or into
|
|
@@ -2406,9 +2377,7 @@ class AuroPopover extends i {
|
|
|
2406
2377
|
this.toggle();
|
|
2407
2378
|
}
|
|
2408
2379
|
};
|
|
2409
|
-
this._onHidePopover = () => {
|
|
2410
|
-
this.toggleHide();
|
|
2411
|
-
};
|
|
2380
|
+
this._onHidePopover = () => { this.toggleHide(); };
|
|
2412
2381
|
|
|
2413
2382
|
// mouseenter/mouseleave attach to the host when the trigger is a direct
|
|
2414
2383
|
// child of auro-popover (slotted), otherwise they attach to the trigger itself.
|
|
@@ -2473,7 +2442,7 @@ class AuroPopover extends i {
|
|
|
2473
2442
|
if (el.tabIndex < 0) return false;
|
|
2474
2443
|
let node = el;
|
|
2475
2444
|
while (node) {
|
|
2476
|
-
if (node.closest(
|
|
2445
|
+
if (node.closest('[hidden], [inert]')) return false;
|
|
2477
2446
|
const root = node.getRootNode();
|
|
2478
2447
|
node = root instanceof ShadowRoot ? root.host : null;
|
|
2479
2448
|
}
|
|
@@ -2481,26 +2450,18 @@ class AuroPopover extends i {
|
|
|
2481
2450
|
};
|
|
2482
2451
|
|
|
2483
2452
|
// Check light DOM children for focusable elements.
|
|
2484
|
-
let hasInternalFocus = [
|
|
2485
|
-
...this.trigger.querySelectorAll(focusableSelector),
|
|
2486
|
-
].some(isReachable);
|
|
2453
|
+
let hasInternalFocus = [...this.trigger.querySelectorAll(focusableSelector)].some(isReachable);
|
|
2487
2454
|
|
|
2488
2455
|
// Also check light DOM custom element descendants whose shadow DOM
|
|
2489
2456
|
// contains focusable content. querySelector cannot reach into shadow
|
|
2490
2457
|
// roots, so custom elements like auro-button inside a wrapper trigger
|
|
2491
2458
|
// would otherwise be missed (e.g. <div><auro-button></auro-button></div>).
|
|
2492
2459
|
if (!hasInternalFocus) {
|
|
2493
|
-
const descendants = this.trigger.querySelectorAll(
|
|
2460
|
+
const descendants = this.trigger.querySelectorAll('*');
|
|
2494
2461
|
|
|
2495
2462
|
for (const child of descendants) {
|
|
2496
|
-
if (
|
|
2497
|
-
|
|
2498
|
-
(child.tabIndex >= 0 ||
|
|
2499
|
-
(child.shadowRoot &&
|
|
2500
|
-
[...child.shadowRoot.querySelectorAll(focusableSelector)].some(
|
|
2501
|
-
isReachable,
|
|
2502
|
-
)))
|
|
2503
|
-
) {
|
|
2463
|
+
if (child.localName.includes('-') && (child.tabIndex >= 0 ||
|
|
2464
|
+
(child.shadowRoot && [...child.shadowRoot.querySelectorAll(focusableSelector)].some(isReachable)))) {
|
|
2504
2465
|
hasInternalFocus = true;
|
|
2505
2466
|
break;
|
|
2506
2467
|
}
|
|
@@ -2512,21 +2473,11 @@ class AuroPopover extends i {
|
|
|
2512
2473
|
// If the shadow root is inaccessible (closed mode or not yet upgraded),
|
|
2513
2474
|
// we cannot inspect it — the element will receive tabindex if it is not
|
|
2514
2475
|
// otherwise focusable. This is a known limitation documented above.
|
|
2515
|
-
if (
|
|
2516
|
-
|
|
2517
|
-
this.trigger.localName.includes("-") &&
|
|
2518
|
-
this.trigger.shadowRoot
|
|
2519
|
-
) {
|
|
2520
|
-
hasInternalFocus = [
|
|
2521
|
-
...this.trigger.shadowRoot.querySelectorAll(focusableSelector),
|
|
2522
|
-
].some(isReachable);
|
|
2476
|
+
if (!hasInternalFocus && this.trigger.localName.includes('-') && this.trigger.shadowRoot) {
|
|
2477
|
+
hasInternalFocus = [...this.trigger.shadowRoot.querySelectorAll(focusableSelector)].some(isReachable);
|
|
2523
2478
|
}
|
|
2524
2479
|
|
|
2525
|
-
if (
|
|
2526
|
-
!isNativelyFocusable &&
|
|
2527
|
-
!hasInternalFocus &&
|
|
2528
|
-
!this.trigger.hasAttribute("tabindex")
|
|
2529
|
-
) {
|
|
2480
|
+
if (!isNativelyFocusable && !hasInternalFocus && !this.trigger.hasAttribute("tabindex")) {
|
|
2530
2481
|
this.trigger.setAttribute("tabindex", "0");
|
|
2531
2482
|
this._addedTabIndex = true;
|
|
2532
2483
|
}
|
|
@@ -2536,13 +2487,11 @@ class AuroPopover extends i {
|
|
|
2536
2487
|
// in modern browsers and screen readers (Chrome 92+, Firefox 92+, Safari 15.4+)
|
|
2537
2488
|
// but may be unfamiliar — do not replace with aria-describedby.
|
|
2538
2489
|
const slot = this.shadowRoot.querySelector("slot:not([name])");
|
|
2539
|
-
const getSlotText = () =>
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
.replace(/\s+/g, " ")
|
|
2545
|
-
.trim();
|
|
2490
|
+
const getSlotText = () => slot.assignedNodes({ flatten: true })
|
|
2491
|
+
.map((n) => n.textContent ?? "")
|
|
2492
|
+
.join(" ")
|
|
2493
|
+
.replace(/\s+/g, " ")
|
|
2494
|
+
.trim();
|
|
2546
2495
|
|
|
2547
2496
|
// Determine which elements should receive aria-description.
|
|
2548
2497
|
// When the trigger is a non-focusable wrapper around focusable content
|
|
@@ -2552,17 +2501,15 @@ class AuroPopover extends i {
|
|
|
2552
2501
|
|
|
2553
2502
|
if (!isNativelyFocusable && hasInternalFocus) {
|
|
2554
2503
|
// Gather all keyboard-reachable light DOM descendants.
|
|
2555
|
-
const nativeMatches = [
|
|
2556
|
-
...this.trigger.querySelectorAll(focusableSelector),
|
|
2557
|
-
].filter(isReachable);
|
|
2504
|
+
const nativeMatches = [...this.trigger.querySelectorAll(focusableSelector)].filter(isReachable);
|
|
2558
2505
|
|
|
2559
2506
|
this._ariaDescriptionTargets.push(...nativeMatches);
|
|
2560
2507
|
|
|
2561
2508
|
// Check custom element descendants whose shadow DOM is focusable.
|
|
2562
|
-
const allDescendants = this.trigger.querySelectorAll(
|
|
2509
|
+
const allDescendants = this.trigger.querySelectorAll('*');
|
|
2563
2510
|
|
|
2564
2511
|
for (const child of allDescendants) {
|
|
2565
|
-
if (!child.localName.includes(
|
|
2512
|
+
if (!child.localName.includes('-')) continue;
|
|
2566
2513
|
// Skip if already matched by the native selector (e.g. has tabindex attribute).
|
|
2567
2514
|
if (nativeMatches.includes(child)) continue;
|
|
2568
2515
|
|
|
@@ -2572,9 +2519,7 @@ class AuroPopover extends i {
|
|
|
2572
2519
|
} else if (child.shadowRoot) {
|
|
2573
2520
|
// Host is not keyboard-reachable; focus goes to internal elements.
|
|
2574
2521
|
// Set description directly on the shadow DOM focusable controls.
|
|
2575
|
-
const shadowFocusable = [
|
|
2576
|
-
...child.shadowRoot.querySelectorAll(focusableSelector),
|
|
2577
|
-
].filter(isReachable);
|
|
2522
|
+
const shadowFocusable = [...child.shadowRoot.querySelectorAll(focusableSelector)].filter(isReachable);
|
|
2578
2523
|
|
|
2579
2524
|
for (const el of shadowFocusable) {
|
|
2580
2525
|
this._ariaDescriptionTargets.push(el);
|
|
@@ -2587,10 +2532,8 @@ class AuroPopover extends i {
|
|
|
2587
2532
|
// (e.g. mock-focusable, auro-button used directly as trigger).
|
|
2588
2533
|
// Light DOM searches found nothing; add the shadow focusable controls
|
|
2589
2534
|
// so the description is announced when focus lands inside the shadow root.
|
|
2590
|
-
if (this.trigger.localName.includes(
|
|
2591
|
-
const shadowFocusable = [
|
|
2592
|
-
...this.trigger.shadowRoot.querySelectorAll(focusableSelector),
|
|
2593
|
-
].filter(isReachable);
|
|
2535
|
+
if (this.trigger.localName.includes('-') && this.trigger.shadowRoot) {
|
|
2536
|
+
const shadowFocusable = [...this.trigger.shadowRoot.querySelectorAll(focusableSelector)].filter(isReachable);
|
|
2594
2537
|
|
|
2595
2538
|
this._ariaDescriptionTargets.push(...shadowFocusable);
|
|
2596
2539
|
}
|
|
@@ -2706,11 +2649,7 @@ class AuroPopover extends i {
|
|
|
2706
2649
|
// If disabled becomes true while the popover is visible, force-hide so
|
|
2707
2650
|
// aria-hidden, the body mouseover listener, and Popper stay in sync with
|
|
2708
2651
|
// the CSS that hides the popover via :host([disabled]).
|
|
2709
|
-
if (
|
|
2710
|
-
changedProperties.has("disabled") &&
|
|
2711
|
-
this.disabled &&
|
|
2712
|
-
this.isPopoverVisible
|
|
2713
|
-
) {
|
|
2652
|
+
if (changedProperties.has("disabled") && this.disabled && this.isPopoverVisible) {
|
|
2714
2653
|
this.isPopoverVisible = false;
|
|
2715
2654
|
}
|
|
2716
2655
|
}
|
|
@@ -2724,12 +2663,12 @@ class AuroPopover extends i {
|
|
|
2724
2663
|
popover="manual"
|
|
2725
2664
|
part="popover"
|
|
2726
2665
|
role="tooltip"
|
|
2727
|
-
aria-hidden="${this.isPopoverVisible ?
|
|
2728
|
-
<div id="arrow" class="arrow" data-popper-arrow
|
|
2666
|
+
aria-hidden="${this.isPopoverVisible ? 'false' : 'true'}">
|
|
2667
|
+
<div id="arrow" class="arrow" data-popper-arrow></div>
|
|
2729
2668
|
<slot></slot>
|
|
2730
2669
|
</div>
|
|
2731
2670
|
|
|
2732
|
-
<span role="presentation"
|
|
2671
|
+
<span role="presentation">
|
|
2733
2672
|
<slot name="trigger" data-trigger-placement="${this.placement}"></slot>
|
|
2734
2673
|
</span>
|
|
2735
2674
|
`;
|