@lion/field
Advanced tools
Comparing version 0.2.10 to 0.3.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.3.0](https://github.com/ing-bank/lion/compare/@lion/field@0.2.10...@lion/field@0.3.0) (2019-10-11) | ||
### Features | ||
* **field:** add aria-live attribute to feedback slot ([158c070](https://github.com/ing-bank/lion/commit/158c070)) | ||
## [0.2.10](https://github.com/ing-bank/lion/compare/@lion/field@0.2.9...@lion/field@0.2.10) (2019-10-09) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/field", | ||
"version": "0.2.10", | ||
"version": "0.3.0", | ||
"description": "Fields are the most fundamental building block of the Form System", | ||
@@ -45,3 +45,3 @@ "author": "ing-bank", | ||
}, | ||
"gitHead": "dfb42593d26ea91f0b32892f8db3a3a6e5ec22ed" | ||
"gitHead": "ac44ce8e212c2502ed1c452ac4d0e7d4d5d431be" | ||
} |
@@ -142,2 +142,3 @@ import { html, css, nothing, dedupeMixin, SlotMixin } from '@lion/core'; | ||
if (_feedbackNode) { | ||
_feedbackNode.setAttribute('aria-live', 'polite'); | ||
_feedbackNode.id = _feedbackNode.id || `feedback-${this._inputId}`; | ||
@@ -144,0 +145,0 @@ const describeIdFeedback = ` ${_feedbackNode.id}`; |
@@ -65,2 +65,13 @@ import { expect, fixture, html, defineCE, unsafeStatic } from '@open-wc/testing'; | ||
}); | ||
it('adds aria-live="politie" to the feedback slot', async () => { | ||
const lionField = await fixture(html` | ||
<${tag}> | ||
${inputSlot} | ||
<div slot="feedback">Added to see attributes</div> | ||
</${tag}> | ||
`); | ||
expect(lionField.$$slot('feedback').getAttribute('aria-live')).to.equal('polite'); | ||
}); | ||
}); |
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
207844
2957