Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 6d71d80

Browse files
committed
Get rid of unnecessary modal bg color
1 parent 54d7f1d commit 6d71d80

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/react-image-lightbox.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,14 +1010,15 @@ class ReactImageLightbox extends Component {
10101010
...reactModalStyle.overlay, // Allow style overrides via props
10111011
},
10121012
content: {
1013-
overflow: 'hidden', // Needed, otherwise keyboard shortcuts scroll the page
1014-
border: 'none',
1015-
borderRadius: 0,
1016-
padding: 0,
1017-
top: 0,
1018-
left: 0,
1019-
right: 0,
1020-
bottom: 0,
1013+
backgroundColor: 'transparent',
1014+
overflow: 'hidden', // Needed, otherwise keyboard shortcuts scroll the page
1015+
border: 'none',
1016+
borderRadius: 0,
1017+
padding: 0,
1018+
top: 0,
1019+
left: 0,
1020+
right: 0,
1021+
bottom: 0,
10211022
...reactModalStyle.content, // Allow style overrides via props
10221023
},
10231024
};

0 commit comments

Comments
 (0)