@@ -162,13 +162,16 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
162
162
const tagButton = (
163
163
< button
164
164
sx = { {
165
+ appearance : 'none' ,
166
+ WebkitAppearance : 'none' ,
165
167
cursor : 'pointer' ,
166
168
border : 'none' ,
167
- backgroundColor : 'background' ,
169
+ backgroundColor : isSelected ? '#ff0' : 'background' ,
168
170
color : 'text' ,
169
- fontSize : 1 ,
170
- fontWeight : isSelected ? 600 : 400 ,
171
- px : 0 ,
171
+ fontSize : '14px' ,
172
+ fontWeight : isSelected ? 700 : 400 ,
173
+ borderRadius : '6px' ,
174
+ px : 2 ,
172
175
mr : 0 ,
173
176
ml : 0 ,
174
177
textAlign : 'start' ,
@@ -216,7 +219,7 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
216
219
} ,
217
220
} }
218
221
/>
219
- < span sx = { { lineHeight : 1 , fontFamily : 'monospace' } } > { tagButton } </ span >
222
+ < span sx = { { fontSize : 1 , lineHeight : 1 , fontFamily : 'monospace' } } > { tagButton } </ span >
220
223
< Collapsible . Content >
221
224
< div sx = { { ml : 4 , py : '0.0625rem' } } >
222
225
{ value . children ?. map ( ( child , i ) => {
@@ -281,11 +284,14 @@ export function TreeNode({ value, path, onSelect, onChange }: TreeNodeProps) {
281
284
> </ div >
282
285
< div
283
286
sx = { {
284
- fontWeight : isSelected ? 600 : 400 ,
285
287
lineHeight : 1 ,
286
- p : 0 ,
287
- fontSize : 1 ,
288
- fontFamily : 'monospace' ,
288
+ py : 0 ,
289
+ px : 2 ,
290
+ fontSize : '14px' ,
291
+ bg : isSelected ? '#ff0' : 'background' ,
292
+ fontWeight : isSelected ? 700 : 400 ,
293
+ borderRadius : '6px' ,
294
+ transition : 'background-color .2s ease-in-out' ,
289
295
} }
290
296
>
291
297
</{ value . tagName } >
0 commit comments