@lion/button
Advanced tools
Comparing version 0.3.46 to 0.4.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.4.0](https://github.com/ing-bank/lion/compare/@lion/button@0.3.46...@lion/button@0.4.0) (2019-12-04) | ||
### Features | ||
* integrate and pass automated a11y testing ([e1a417b](https://github.com/ing-bank/lion/commit/e1a417b041431e4e25a5b6a63e23ba0a3974f5a5)) | ||
## [0.3.46](https://github.com/ing-bank/lion/compare/@lion/button@0.3.45...@lion/button@0.3.46) (2019-12-03) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/button", | ||
"version": "0.3.46", | ||
"version": "0.4.0", | ||
"description": "A button that is easily styleable and accessible in all contexts", | ||
@@ -46,3 +46,3 @@ "author": "ing-bank", | ||
}, | ||
"gitHead": "37fd54a4218e59ce3a19cb5b07ff37279c3e6921" | ||
"gitHead": "c49a82fec9bcc37aaf5e84dcd5719d43df20c4b9" | ||
} |
@@ -140,3 +140,3 @@ import { css, html, SlotMixin, DisabledWithTabIndexMixin, LitElement } from '@lion/core'; | ||
this.constructor._button.setAttribute('tabindex', '-1'); | ||
this.constructor._button.setAttribute('aria-hidden', true); | ||
this.constructor._button.setAttribute('aria-hidden', 'true'); | ||
} | ||
@@ -143,0 +143,0 @@ return this.constructor._button.cloneNode(); |
@@ -231,2 +231,12 @@ import { expect, fixture, html, aTimeout, oneEvent } from '@open-wc/testing'; | ||
}); | ||
it('is accessible', async () => { | ||
const el = await fixture(`<lion-button>foo</lion-button>`); | ||
await expect(el).to.be.accessible(); | ||
}); | ||
it('is accessible when disabled', async () => { | ||
const el = await fixture(`<lion-button disabled>foo</lion-button>`); | ||
await expect(el).to.be.accessible(); | ||
}); | ||
}); | ||
@@ -233,0 +243,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
51302
694