File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
packages/react-devtools-shared/src/devtools/views/Components Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 73
73
background : var (--color-button-background-focus );
74
74
}
75
75
76
- .ModalDark [ data-reach-menu-list ] , . ModalLight [data-reach-menu-list ] {
76
+ .Modal [data-reach-menu-list ] {
77
77
display : inline-flex;
78
78
flex-direction : column;
79
- background-color : var (--light-color-background );
80
- color : var (--light-color-button );
81
79
padding : 0.25rem 0 ;
82
80
padding-right : 0 ;
83
- border : 1px solid var (--light-color-border );
84
81
border-radius : 0.25rem ;
85
82
max-height : 10rem ;
86
83
overflow : auto;
93
90
font-size : var (--font-size-monospace-normal );
94
91
}
95
92
96
- .ModalDark [data-reach-menu-list ] {
93
+ .ModalDark {
94
+ background-color : var (--dark-color-background );
97
95
border : 1px solid var (--dark-color-border );
98
96
color : var (--dark-color-button );
99
- background-color : var (--dark-color-background );
97
+ }
98
+
99
+ .ModalLight {
100
+ background-color : var (--light-color-background );
101
+ border : 1px solid var (--light-color-border );
102
+ color : var (--light-color-button );
100
103
}
101
104
102
105
.NotInStore ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import {StoreContext} from '../context';
30
30
import type { SerializedElement } from './types' ;
31
31
32
32
import styles from './OwnersStack.css' ;
33
- import { SettingsContext } from '../Settings/SettingsContext' ;
33
+ import { SettingsContext } from '../Settings/SettingsContext' ;
34
34
35
35
type SelectOwner = ( owner : SerializedElement | null ) => void ;
36
36
@@ -209,7 +209,7 @@ function ElementsDropdown({
209
209
selectOwner,
210
210
} : ElementsDropdownProps ) {
211
211
const store = useContext ( StoreContext ) ;
212
- const { theme, browserTheme } = useContext ( SettingsContext ) ;
212
+ const { theme, browserTheme} = useContext ( SettingsContext ) ;
213
213
const isLightTheme = ( theme === 'auto' ? browserTheme : theme ) === 'light' ;
214
214
215
215
const menuItems = [ ] ;
@@ -241,7 +241,10 @@ function ElementsDropdown({
241
241
</ span >
242
242
</ Tooltip >
243
243
</ MenuButton >
244
- < MenuList className = { isLightTheme ? styles . ModalLight : styles . ModalDark } >
244
+ < MenuList
245
+ className = { `${ styles . Modal } ${
246
+ isLightTheme ? styles . ModalLight : styles . ModalDark
247
+ } `} >
245
248
{ menuItems }
246
249
</ MenuList >
247
250
</ Menu >
You can’t perform that action at this time.
0 commit comments