Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@springernature/global-dropdown

Package Overview
Dependencies
Maintainers
10
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springernature/global-dropdown - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

5

__tests__/unit/index.js

@@ -50,8 +50,3 @@ 'use strict';

}, 150);
})
test('it adds display none class', () => {
expect.assertions(1)
expect(document.querySelectorAll('.u-display-none').length).toEqual(1);
});
});

3

HISTORY.md
# History
## 0.3.0 (2018-10-09)
* Remove utility classes.
## 0.2.0 (2018-07-23)

@@ -4,0 +7,0 @@ * Stop page scrolling when using up & down keys to navigate dropdown menu.

@@ -27,4 +27,4 @@ /* eslint no-use-before-define: ["error", { "functions": false, "variables": false }] */

button.setAttribute('aria-expanded', 'false');
button.nextElementSibling.classList.add('u-display-none');
button.querySelector('svg').classList.remove('u-rotate');
button.nextElementSibling.style.display = 'none';
button.querySelector('svg').style.transform = null;
document.removeEventListener('keydown', escapekeyCloseDropdown);

@@ -35,4 +35,4 @@ };

button.setAttribute('aria-expanded', 'true');
button.nextElementSibling.classList.remove('u-display-none');
button.querySelector('svg').classList.add('u-rotate');
button.nextElementSibling.style.display = null;
button.querySelector('svg').style.transform = 'rotate(180deg)';
button.nextElementSibling.querySelector('[data-dropdown-item]').focus();

@@ -77,3 +77,3 @@ document.addEventListener('keydown', escapekeyCloseDropdown);

[...document.querySelectorAll('.c-dropdown__menu')].forEach(dropdown => {
dropdown.classList.add('u-display-none');
dropdown.style.display = 'none';
});

@@ -80,0 +80,0 @@

{
"name": "@springernature/global-dropdown",
"version": "0.2.0",
"license": "MIT",
"description": "dropdown component",
"keywords": [
"css",
"js",
"component"
],
"author": "Oliver Williams",
"dependencies": {
"@springernature/global-css-utilities": "^0.1.0"
"name": "@springernature/global-dropdown",
"version": "0.3.0",
"license": "MIT",
"description": "dropdown component",
"keywords": [
"css",
"js",
"component"
],
"author": "Oliver Williams"
}
}
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