diff --git a/src/components/atoms/OffcanvasHeader/OffcanvasHeader.js b/src/components/atoms/OffcanvasHeader/OffcanvasHeader.js index aee87937..677e0683 100644 --- a/src/components/atoms/OffcanvasHeader/OffcanvasHeader.js +++ b/src/components/atoms/OffcanvasHeader/OffcanvasHeader.js @@ -47,13 +47,13 @@ export default class OffcanvasHeader extends HTMLElement { const offcanvasHeaderClasses = ['offcanvas-header']; this.offcanvasTitle.className = 'offcanvas-title'; this.offcanvasTitle.id = `${parentID}-label`; - this.closeBtn.setAttribute('data-img-alt', ''); - this.closeBtn.setAttribute('data-icon', ''); - this.closeBtn.setAttribute('data-close', 'true'); - this.closeBtn.setAttribute('data-bs-dismiss', parentID); + this.closeBtn.setAttribute('img-alt', ''); + this.closeBtn.setAttribute('icon', ''); + this.closeBtn.setAttribute('close', 'true'); + this.closeBtn.setAttribute('bs-dismiss', parentID); extraClasses ? offcanvasHeaderClasses.push(extraClasses) : 0; btnDark === 'true' - ? this.closeBtn.setAttribute('data-extra-classes', 'btn-close-white') + ? this.closeBtn.setAttribute('extra-classes', 'btn-close-white') : 0; const expand = this.getAttribute('data-expand'); if (expand) {