@momentum-design/components 0.54.0 → 0.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,8 +75,10 @@ class Buttonsimple extends TabIndexMixin(DisabledMixin(Component)) {
75
75
  this.setSoftDisabled(this, this.softDisabled);
76
76
  }
77
77
  if (changedProperties.has('active')) {
78
- if (this.active) {
79
- // if active is true and no ariaStateKey is provided, set it to the default (= aria-pressed)
78
+ if (this.active !== undefined) {
79
+ // if active is not undefined and no ariaStateKey is provided, set it to the default (= aria-pressed)
80
+ // this will make sure that if active is set to true or false regardless
81
+ // the ariaStateKey fallback will still work
80
82
  this.ariaStateKey = this.ariaStateKey || DEFAULTS.ARIA_STATE_KEY;
81
83
  }
82
84
  this.setActive(this, this.active);
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "lit": "^3.2.0",
40
40
  "uuid": "^11.0.5"
41
41
  },
42
- "version": "0.54.0"
42
+ "version": "0.54.1"
43
43
  }