Socket
Socket
Sign inDemoInstall

@lion/field

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/field - npm Package Compare versions

Comparing version 0.2.10 to 0.3.0

11

CHANGELOG.md

@@ -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 @@

4

package.json
{
"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');
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc