@springernature/global-dropdown
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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); | ||
}); | ||
}); |
# 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" | ||
} | ||
} | ||
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
0
8781
126
- Removed@springernature/global-css-utilities@0.1.0(transitive)