File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class ModalBase extends React.Component {
1515
1616 close ( ) {
1717 if ( modalBase != null ) modalBase . setState ( { component : null , componentProps : null , isHidden : true } )
18+ document . body . setAttribute ( 'data-modal' , 'close' )
1819
1920 remote . getCurrentWebContents ( ) . send ( 'list-focus' )
2021 }
@@ -37,6 +38,8 @@ let modalBase = ReactDOM.render(<ModalBase/>, el)
3738
3839export function openModal ( component , props ) {
3940 if ( modalBase == null ) { return }
41+
42+ document . body . setAttribute ( 'data-modal' , 'open' )
4043 modalBase . setState ( { component : component , componentProps : props , isHidden : false } )
4144}
4245
Original file line number Diff line number Diff line change 2323 font-size fontSize
2424 font-weight 400
2525
26+ body [data-modal = "open" ]
27+ #content *
28+ overflow hidden !important
29+
2630button , input , select , textarea
2731 font-family DEFAULT_FONTS
2832
You can’t perform that action at this time.
0 commit comments