@proximus/lavender 1.4.11-alpha.3 → 1.4.11-alpha.4
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/dist/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +3 -3
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -10063,7 +10063,7 @@ class Drawer extends HTMLElement {
|
|
|
10063
10063
|
if (!customElements.get("px-drawer")) {
|
|
10064
10064
|
customElements.define("px-drawer", Drawer);
|
|
10065
10065
|
}
|
|
10066
|
-
const styles$y = ':host{position:relative}::slotted([slot="popover"]){position:
|
|
10066
|
+
const styles$y = ':host{position:relative}::slotted([slot="popover"]){position:fixed;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 47.938rem){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}';
|
|
10067
10067
|
const anchorAlignmentValues = [
|
|
10068
10068
|
"top-left",
|
|
10069
10069
|
"top-right",
|
|
@@ -10161,7 +10161,7 @@ class Dropdown extends WithExtraAttributes {
|
|
|
10161
10161
|
anchor-name: ${this.anchorName};
|
|
10162
10162
|
}
|
|
10163
10163
|
:host([anchoralignment="bottom-left"]) {
|
|
10164
|
-
::slotted([
|
|
10164
|
+
::slotted([popover]) {
|
|
10165
10165
|
position-anchor: ${this.anchorName};
|
|
10166
10166
|
top: anchor(${this.anchorName} bottom);
|
|
10167
10167
|
left: anchor(${this.anchorName} left);
|
|
@@ -10328,7 +10328,7 @@ _onToggle = new WeakMap();
|
|
|
10328
10328
|
* race conditions when the popover is toggled and the trigger click event is fired.
|
|
10329
10329
|
*/
|
|
10330
10330
|
handleManualPopoverDisplay_fn = function() {
|
|
10331
|
-
if (this.$trigger) {
|
|
10331
|
+
if (this.$trigger && !["button", "input"].includes(this.$trigger.localName)) {
|
|
10332
10332
|
if (!this.manualToggle) {
|
|
10333
10333
|
this.$trigger.addEventListener("click", this.triggerPopoverDisplay);
|
|
10334
10334
|
}
|