@@ -87,18 +87,18 @@ export const Header: Component<{
87
87
class = "z-10"
88
88
>
89
89
< div
90
- class = "md:items-center md:space-x-2 md:flex md:flex-row"
90
+ class = "md:items-center md:space-x-2 md:flex md:flex-row text-black dark:text-white "
91
91
classList = { {
92
- 'shadow-md flex flex-col justify-center bg-white' : showMenu ( ) ,
92
+ 'shadow-md flex flex-col justify-center bg-white dark:bg-gray-700 ' : showMenu ( ) ,
93
93
hidden : ! showMenu ( ) ,
94
94
} }
95
95
>
96
96
< button
97
97
type = "button"
98
98
onClick = { props . toggleDark }
99
- class = "text-black md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded text-white opacity-80 hover:opacity-100"
99
+ class = "md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100"
100
100
classList = { {
101
- 'rounded-none active:bg-gray-300 hover:bg-gray-300 focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
101
+ 'rounded-none active:bg-gray-300 hover:bg-gray-300 dark:hover:text-black focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
102
102
showMenu ( ) ,
103
103
} }
104
104
title = "Toggle dark mode"
@@ -110,9 +110,9 @@ export const Header: Component<{
110
110
</ button >
111
111
112
112
< label
113
- class = "text-black md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded text-white opacity-80 hover:opacity-100 cursor-pointer"
113
+ class = "md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100 cursor-pointer"
114
114
classList = { {
115
- 'rounded-none active:bg-gray-300 hover:bg-gray-300 focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
115
+ 'rounded-none active:bg-gray-300 hover:bg-gray-300 dark:hover:text-black focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
116
116
showMenu ( ) ,
117
117
} }
118
118
title = "Import from JSON"
@@ -125,9 +125,9 @@ export const Header: Component<{
125
125
< button
126
126
type = "button"
127
127
onClick = { ( ) => exportToJSON ( props . tabs ) }
128
- class = "text-black md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded text-white opacity-80 hover:opacity-100"
128
+ class = "md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100"
129
129
classList = { {
130
- 'rounded-none active:bg-gray-300 hover:bg-gray-300 focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
130
+ 'rounded-none active:bg-gray-300 hover:bg-gray-300 dark:hover:text-black focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
131
131
showMenu ( ) ,
132
132
} }
133
133
title = "Export to JSON"
@@ -141,9 +141,9 @@ export const Header: Component<{
141
141
< button
142
142
type = "button"
143
143
onClick = { ( ) => exportToCsb ( props . tabs ) }
144
- class = "text-black md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded text-white opacity-80 hover:opacity-100"
144
+ class = "md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100"
145
145
classList = { {
146
- 'rounded-none active:bg-gray-300 hover:bg-gray-300 focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
146
+ 'rounded-none active:bg-gray-300 hover:bg-gray-300 dark:hover:text-black focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
147
147
showMenu ( ) ,
148
148
} }
149
149
title = "Export to CodeSandbox"
@@ -161,11 +161,11 @@ export const Header: Component<{
161
161
< button
162
162
type = "button"
163
163
onClick = { shareLink }
164
- class = "text-black md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded"
164
+ class = "md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded"
165
165
classList = { {
166
166
'opacity-80 hover:opacity-100' : ! copy ( ) ,
167
167
'text-green-100' : copy ( ) && ! showMenu ( ) ,
168
- 'rounded-none active:bg-gray-300 hover:bg-gray-300 focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
168
+ 'rounded-none active:bg-gray-300 hover:bg-gray-300 dark:hover:text-black focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none' :
169
169
showMenu ( ) ,
170
170
} }
171
171
title = "Share with a minified link"
0 commit comments