@getflip/swirl-components 0.325.0 → 0.325.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ describe("swirl-menu", () => {
75
75
  </button>
76
76
  </swirl-button>
77
77
  </swirl-popover-trigger>
78
- <swirl-popover id="menu" label="Menu">
78
+ <swirl-popover id="menu" label="Menu" style="display: none;">
79
79
  <mock:shadow-root>
80
80
  <div class="popover popover--animation-scale-in-xy popover--inactive popover--padded popover--placement-undefined">
81
81
  <div aria-hidden="true" aria-label="Menu" class="popover__content" part="popover__content" role="dialog" tabindex="-1">
@@ -1,7 +1,6 @@
1
1
  :host {
2
2
  position: relative;
3
3
  z-index: var(--s-z-40);
4
- display: inline-flex;
5
4
  }
6
5
 
7
6
  :host * {
@@ -261,14 +261,14 @@ export class SwirlPopover {
261
261
  "popover--transparent": this.transparent,
262
262
  "popover--padded": this.padded,
263
263
  });
264
- return (h(Host, { key: 'cbb60ed5940577e10bc5fc902c753ebd45906372' }, h("div", { key: '026d18a7b495a4a79e2c2fa720cd97032d3dbcae', class: className, onKeyDown: this.onKeydown }, h("div", { key: '4b0324e4a34100e96540c8a504efcea4de74de4e', "aria-hidden": !this.active ? "true" : "false", "aria-label": this.label, class: "popover__content", id: this.popoverId, part: "popover__content", role: "dialog", ref: (el) => (this.contentContainer = el), style: {
264
+ return (h(Host, { key: '175ced51f2a06af65a7e1a846cf2fd3e8a981ea0', style: { display: this.active ? "inline-flex" : "none" } }, h("div", { key: 'adaee9f29294b5561d16ae2f4ef532c0bfc7c038', class: className, onKeyDown: this.onKeydown }, h("div", { key: '4c917a176ec55e2f9c8a61024e85059de1fee2e9', "aria-hidden": !this.active ? "true" : "false", "aria-label": this.label, class: "popover__content", id: this.popoverId, part: "popover__content", role: "dialog", ref: (el) => (this.contentContainer = el), style: {
265
265
  top: Boolean(this.position) ? `${this.position?.y}px` : "",
266
266
  left: Boolean(this.position) ? `${this.position?.x}px` : "",
267
- }, tabindex: "-1" }, h("span", { key: '545a62bbcc4b125ed17db257692477bd1f864fef', class: "popover__handle" }), h("div", { key: '79affb1ea53e60027a9c0a872cc0b0868a47acdc', class: "popover__scroll-container", part: "popover__scroll-container", ref: (el) => (this.scrollContainer = el), style: {
267
+ }, tabindex: "-1" }, h("span", { key: 'bc92d0c351914716a5048423a35381da87cc5082', class: "popover__handle" }), h("div", { key: '3435afc9cfc9dc0e81e2e57f65dfc345098ba481', class: "popover__scroll-container", part: "popover__scroll-container", ref: (el) => (this.scrollContainer = el), style: {
268
268
  maxHeight: !mobile && Boolean(this.maxHeight)
269
269
  ? this.maxHeight
270
270
  : undefined,
271
- } }, h("slot", { key: '04a4bb2710fdcf19bccbf43dfac6b1e970b34e9e' }))), this.active && (h("div", { key: 'f6a04e25d55ed012ec969ab95a0f86941976a7c0', class: "popover__backdrop", onClick: this.onCloseButtonClick })))));
271
+ } }, h("slot", { key: '4e58a63669e879fd43b15f796ab22664b328f2f4' }))), this.active && (h("div", { key: '6318303b68d6c8edf51ad6637b484c712bf8ce4b', class: "popover__backdrop", onClick: this.onCloseButtonClick })))));
272
272
  }
273
273
  static get is() { return "swirl-popover"; }
274
274
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ describe("swirl-popover", () => {
12
12
  <swirl-popover-trigger swirl-popover="popover">
13
13
  <button id="trigger">Trigger popover</button>
14
14
  </swirl-popover-trigger>
15
- <swirl-popover label="Popover" id="popover">
15
+ <swirl-popover label="Popover" id="popover" style="display: none;">
16
16
  <div>Content</div>
17
17
  </swirl-popover>
18
18
  </div>
@@ -35,7 +35,7 @@ describe("swirl-popover", () => {
35
35
  <swirl-popover-trigger swirl-popover="popover">
36
36
  <button aria-controls="popover" aria-expanded="false" aria-haspopup="dialog" id="trigger">Trigger popover</button>
37
37
  </swirl-popover-trigger>
38
- <swirl-popover id="popover" label="Popover">
38
+ <swirl-popover id="popover" label="Popover" style="display: none;">
39
39
  <mock:shadow-root>
40
40
  <div class="popover popover--animation-scale-in-xy popover--inactive popover--padded popover--placement-undefined">
41
41
  <div aria-hidden="true" aria-label="Popover" class="popover__content" part="popover__content" role="dialog" tabindex="-1">