Skip to content

Commit

Permalink
Updated the rest of the attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sreidthomas committed May 21, 2024
1 parent 7089ad9 commit 47e0f48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/atoms/OffcanvasHeader/OffcanvasHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 47e0f48

Please sign in to comment.