@lion/button
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.7.1](https://github.com/ing-bank/lion/compare/@lion/button@0.7.0...@lion/button@0.7.1) (2020-06-02) | ||
### Bug Fixes | ||
* **button:** aria-disabled for button and switch ([31ccb4a](https://github.com/ing-bank/lion/commit/31ccb4a10f6b14e93ddaca825d5e6bf2db8dd1ee)) | ||
# [0.7.0](https://github.com/ing-bank/lion/compare/@lion/button@0.6.0...@lion/button@0.7.0) (2020-05-29) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/button", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "A button that is easily styleable and accessible in all contexts", | ||
@@ -46,3 +46,3 @@ "author": "ing-bank", | ||
}, | ||
"gitHead": "94b87c80f5c734cd7d2d2ecd1c6598b22575717e" | ||
"gitHead": "537264cbbad8bd29184e64ccb74ef8bbb5a2a059" | ||
} |
@@ -187,2 +187,5 @@ import { | ||
} | ||
if (changedProperties.has('disabled')) { | ||
this.setAttribute('aria-disabled', `${this.disabled}`); // create mixin if we need it in more places | ||
} | ||
} | ||
@@ -189,0 +192,0 @@ |
@@ -60,2 +60,3 @@ import { browserDetection } from '@lion/core'; | ||
expect(el.getAttribute('tabindex')).to.equal('-1'); | ||
expect(el.getAttribute('aria-disabled')).to.equal('true'); | ||
@@ -65,2 +66,3 @@ el.disabled = false; | ||
expect(el.getAttribute('tabindex')).to.equal('0'); | ||
expect(el.getAttribute('aria-disabled')).to.equal('false'); | ||
expect(el.hasAttribute('disabled')).to.equal(false); | ||
@@ -71,2 +73,3 @@ | ||
expect(el.getAttribute('tabindex')).to.equal('-1'); | ||
expect(el.getAttribute('aria-disabled')).to.equal('true'); | ||
expect(el.hasAttribute('disabled')).to.equal(true); | ||
@@ -73,0 +76,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58781
619