Socket
Socket
Sign inDemoInstall

@lion/switch

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/switch - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

11

CHANGELOG.md

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

4

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