Skip to content

Commit

Permalink
Changed close, primary and disableStatus to hasAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sreidthomas committed Aug 2, 2024
1 parent e721dc4 commit 48adb8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/atoms/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export default class Button extends HTMLElement {

connectedCallback() {
// Button attributes
const close = this.getAttribute('close');
const close = this.hasAttribute('close');
const link = this.getAttribute('link');
const btnID = this.getAttribute('id');
const ariaLabel = this.getAttribute('aria-label');
const primary = this.getAttribute('primary');
const primary = this.hasAttribute('primary');
const backgroundColor = this.getAttribute('background-color');
const shape = this.getAttribute('shape');
const icon = this.getAttribute('icon');
Expand All @@ -28,7 +28,7 @@ export default class Button extends HTMLElement {
const size = this.getAttribute('size');
const extraClasses = this.getAttribute('extra-classes');
const label = this.getAttribute('label');
const disableStatus = this.getAttribute('disabled');
const disableStatus = this.hasAttribute('disabled');
// Building Button component
const btn = document.createElement('button');
const btnClasses = ['btn'];
Expand Down

0 comments on commit 48adb8d

Please sign in to comment.