react-css-collapse
Advanced tools
Comparing version 3.2.0 to 3.3.0
# Changelog | ||
# 3.3.0 | ||
> Nov 15, 2017 | ||
* :tada: **Enhancement** Setting `visibility: hidden` when collapse is closed to prevent screenreaders from reading the content | ||
# 3.1.0 | ||
@@ -4,0 +8,0 @@ > Nov 15, 2017 |
@@ -32,3 +32,4 @@ 'use strict'; | ||
height: '0px', | ||
overflow: 'hidden' | ||
overflow: 'hidden', | ||
visibility: 'hidden' | ||
}; | ||
@@ -70,2 +71,3 @@ | ||
this.setContentStyleProperty('height', this.content.scrollHeight + 'px'); | ||
this.setContentStyleProperty('visibility', 'visible'); | ||
} | ||
@@ -82,3 +84,4 @@ | ||
setTimeout(function () { | ||
_this2.setCollapsed(); | ||
_this2.setContentStyleProperty('height', '0px'); | ||
_this2.setContentStyleProperty('overflow', 'hidden'); | ||
}, 0); | ||
@@ -98,2 +101,4 @@ }); | ||
this.setExpanded(); | ||
} else { | ||
this.setCollapsed(); | ||
} | ||
@@ -113,4 +118,3 @@ | ||
value: function setCollapsed() { | ||
this.setContentStyleProperty('height', '0px'); | ||
this.setContentStyleProperty('overflow', 'hidden'); | ||
this.setContentStyleProperty('visibility', 'hidden'); | ||
} | ||
@@ -122,2 +126,3 @@ }, { | ||
this.setContentStyleProperty('overflow', 'visible'); | ||
this.setContentStyleProperty('visibility', 'visible'); | ||
} | ||
@@ -124,0 +129,0 @@ }, { |
{ | ||
"name": "react-css-collapse", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Component-wrapper for collapse animation with css for elements with variable and dynamic height", | ||
@@ -38,7 +38,7 @@ "authors": [ | ||
"devDependencies": { | ||
"@storybook/addon-actions": "^3.2.12", | ||
"@storybook/react": "^3.3.0-alpha.0", | ||
"@storybook/addon-actions": "^3.4.8", | ||
"@storybook/react": "^3.4.8", | ||
"babel-cli": "^6.24.0", | ||
"babel-eslint": "^8.0.2", | ||
"babel-loader": "^7.1.2", | ||
"babel-eslint": "^8.2.5", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-transform-object-rest-spread": "^6.19.0", | ||
@@ -50,17 +50,17 @@ "babel-preset-latest": "^6.24.0", | ||
"chai": "^3.5.0", | ||
"enzyme": "^3.2.0", | ||
"enzyme-adapter-react-16": "^1.1.0", | ||
"enzyme": "^3.3.0", | ||
"enzyme-adapter-react-16": "^1.1.1", | ||
"eslint": "^3.19.0", | ||
"eslint-config-airbnb": "^15.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-jsx-a11y": "^5.1.1", | ||
"eslint-plugin-react": "^7.1.0", | ||
"eslint-plugin-react": "^7.10.0", | ||
"jsdom": "^9.12.0", | ||
"mocha": "^3.1.2", | ||
"prettier": "^1.8.2", | ||
"prettier-eslint": "^8.2.1", | ||
"prettier-eslint-cli": "^4.3.2", | ||
"prop-types": "^15.6.0", | ||
"react": "^16.1.1", | ||
"react-dom": "^16.1.1", | ||
"prettier": "^1.13.7", | ||
"prettier-eslint": "^8.8.2", | ||
"prettier-eslint-cli": "^4.7.1", | ||
"prop-types": "^15.6.2", | ||
"react": "^16.4.1", | ||
"react-dom": "^16.4.1", | ||
"sinon": "^2.1.0" | ||
@@ -67,0 +67,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38116
315