@lion/switch
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.10.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.0...@lion/switch@0.10.1) (2020-06-02) | ||
### Bug Fixes | ||
* **button:** aria-disabled for button and switch ([31ccb4a](https://github.com/ing-bank/lion/commit/31ccb4a10f6b14e93ddaca825d5e6bf2db8dd1ee)) | ||
# [0.10.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.9.1...@lion/switch@0.10.0) (2020-05-29) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/switch", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "A Switch is used for switching a property or feature on and off", | ||
@@ -45,3 +45,3 @@ "author": "ing-bank", | ||
}, | ||
"gitHead": "94b87c80f5c734cd7d2d2ecd1c6598b22575717e" | ||
"gitHead": "537264cbbad8bd29184e64ccb74ef8bbb5a2a059" | ||
} |
@@ -116,2 +116,8 @@ import { html, css, LitElement, DisabledWithTabIndexMixin } from '@lion/core'; | ||
updated(changedProperties) { | ||
if (changedProperties.has('disabled')) { | ||
this.setAttribute('aria-disabled', `${this.disabled}`); // create mixin if we need it in more places | ||
} | ||
} | ||
/** | ||
@@ -118,0 +124,0 @@ * We synchronously update aria-checked to support voice over on safari. |
@@ -111,2 +111,10 @@ import { expect, fixture, html } from '@open-wc/testing'; | ||
}); | ||
it('should manage "aria-disabled"', async () => { | ||
el.disabled = true; | ||
await el.updateComplete; | ||
expect(el.getAttribute('aria-disabled')).to.equal('true'); | ||
el.disabled = false; | ||
await el.updateComplete; | ||
expect(el.getAttribute('aria-disabled')).to.equal('false'); | ||
}); | ||
}); |
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
28881
364