From 47e0f48ed35a7df5344d62d0993a866c792978be Mon Sep 17 00:00:00 2001 From: Shakira Reid-Thomas Date: Tue, 21 May 2024 10:34:43 -0400 Subject: [PATCH] Updated the rest of the attributes --- .../atoms/OffcanvasHeader/OffcanvasHeader.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) {