@dataforsyningen/designsystem
Advanced tools
Comparing version 7.12.0 to 7.12.1
@@ -817,5 +817,3 @@ // src/js/toast.js | ||
} | ||
this.debounceTimer = setTimeout(() => { | ||
this.setClassBySize.bind(this); | ||
}, 100); | ||
this.debounceTimer = setTimeout(this.setClassBySize.bind(this), 100); | ||
} | ||
@@ -841,3 +839,2 @@ setClassBySize() { | ||
for (const element of Array.from(container.children)) { | ||
console.log(element, element.clientWidth); | ||
if (visibleContentWidth < maxWidth) { | ||
@@ -851,3 +848,2 @@ visibleContentWidth = visibleContentWidth + element.clientWidth + 8; | ||
} | ||
console.log("minmax", visibleContentWidth, maxWidth); | ||
this.shadowRoot.querySelector(".menu-items").style.width = `${visibleContentWidth}px`; | ||
@@ -1688,3 +1684,2 @@ } | ||
if (!isSupported()) { | ||
console.log("polyfilling popover"); | ||
apply(); | ||
@@ -1691,0 +1686,0 @@ } |
{ | ||
"name": "@dataforsyningen/designsystem", | ||
"version": "7.12.0", | ||
"version": "7.12.1", | ||
"description": "Common design system for Klimadatastyrelsen with CSS, icons, UI components, and logo images.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -538,7 +538,7 @@ var ToggleEvent = class extends Event { | ||
// Polyfill popover | ||
export function popoverPolyfill() { | ||
if (!isSupported()) { | ||
console.log('polyfilling popover') | ||
apply() | ||
} | ||
} | ||
} |
@@ -172,11 +172,10 @@ import { DSTogglePanel } from './togglePanel.js' | ||
} | ||
this.debounceTimer = setTimeout(() => { | ||
this.setClassBySize.bind(this) | ||
}, 100) | ||
this.debounceTimer = setTimeout(this.setClassBySize.bind(this), 100) | ||
} | ||
setClassBySize() { | ||
const container = this.shadowRoot.querySelector('.menu-container') | ||
const items = this.shadowRoot.querySelector('.menu-items') | ||
this.classList.remove('compact') | ||
@@ -201,3 +200,2 @@ container.classList.remove('compact') | ||
for (const element of Array.from(container.children)) { | ||
console.log(element, element.clientWidth) | ||
@@ -212,3 +210,2 @@ if (visibleContentWidth < maxWidth) { | ||
} | ||
console.log('minmax', visibleContentWidth, maxWidth) | ||
this.shadowRoot.querySelector('.menu-items').style.width = `${ visibleContentWidth }px` | ||
@@ -215,0 +212,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4650415
3922