File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ export const LabelButton = styled('button', {
19
19
color : 'white' ,
20
20
} )
21
21
22
+ export const ExpandButton = styled ( 'button' , {
23
+ cursor : 'pointer' ,
24
+ color : 'inherit' ,
25
+ font : 'inherit' ,
26
+ outline : 'inherit' ,
27
+ background : 'transparent' ,
28
+ border : 'none' ,
29
+ padding : 0 ,
30
+ } )
31
+
22
32
export const Value = styled ( 'span' , ( _props , theme ) => ( {
23
33
color : theme . danger ,
24
34
} ) )
@@ -107,13 +117,13 @@ export const DefaultRenderer: Renderer = ({
107
117
< Entry key = { label } >
108
118
{ subEntryPages ?. length ? (
109
119
< >
110
- < button onClick = { ( ) => toggleExpanded ( ) } >
120
+ < ExpandButton onClick = { ( ) => toggleExpanded ( ) } >
111
121
< Expander expanded = { expanded } /> { label } { ' ' }
112
122
< Info >
113
123
{ String ( type ) . toLowerCase ( ) === 'iterable' ? '(Iterable) ' : '' }
114
124
{ subEntries . length } { subEntries . length > 1 ? `items` : `item` }
115
125
</ Info >
116
- </ button >
126
+ </ ExpandButton >
117
127
{ expanded ? (
118
128
subEntryPages . length === 1 ? (
119
129
< SubEntries >
You can’t perform that action at this time.
0 commit comments