@dataforsyningen/designsystem
Advanced tools
Comparing version 5.0.2 to 5.1.0
@@ -222,3 +222,3 @@ // src/js/toast.js | ||
renderToggleButton() { | ||
const externalToggleButton = document.querySelector(`button[for="${this.id}"]`); | ||
const externalToggleButton = this.parentElement.querySelector(`button[for="${this.id}"]`); | ||
if (externalToggleButton) { | ||
@@ -225,0 +225,0 @@ externalToggleButton.id = `ds-toggle-button-${this.componentId}`; |
{ | ||
"name": "@dataforsyningen/designsystem", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "Common design system for SDFI with CSS, icons, UI components, and logo images.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -28,3 +28,3 @@ export class DSTogglePanel extends HTMLElement { | ||
renderToggleButton() { | ||
const externalToggleButton = document.querySelector(`button[for="${ this.id }"]`) | ||
const externalToggleButton = this.parentElement.querySelector(`button[for="${ this.id }"]`) | ||
if (externalToggleButton) { | ||
@@ -31,0 +31,0 @@ // If a button was designed with the `for` attribute, use it |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
659374
2626