styled-react-modal
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "styled-react-modal", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A React modal built with styled-components.", | ||
@@ -8,3 +8,3 @@ "main": "build/index.js", | ||
"test": "jest --coverage --verbose", | ||
"lint": "standard src/", | ||
"lint": "standard src/ tests/ examples/", | ||
"start": "webpack --watch", | ||
@@ -11,0 +11,0 @@ "build": "webpack" |
@@ -119,2 +119,3 @@ # Styled React Modal | ||
z-index: 30; | ||
opacity: ${props => props.opacity}; | ||
background-color: green; | ||
@@ -166,3 +167,3 @@ ` | ||
- [`onEscapeKeydown`] \(Function\): A function that is called when the escape key is pressed while the modal is open. | ||
- [`backgroundProps`] \(Object\): An props object that is spread over the `<ModalProvider />`s `backgroundComponent` when included. | ||
- [`backgroundProps`] \(Object\): A props object that is spread over the `backgroundComponent` when included. | ||
- [`allowScroll`] \(Boolean\): When true, scrolling in the document body is not disabled when the modal is open. | ||
@@ -169,0 +170,0 @@ - [`beforeOpen`] \(Function\): A function that is called before the modal opens. If this function returns a promise, then the modal is opened after the promise is resolved. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
219
347586
20
408