File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ https://anyroad.github.io/react-json-view-lite/
115
115
| Name | Type | Description |
116
116
| ----------------------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
117
117
| container | string | CSS class name for rendering parent block |
118
+ | childFieldsContainer | string | CSS class name for rendering parent block of array or object |
118
119
| basicChildStyle | string | CSS class name for property block containing property name and value |
119
120
| collapseIcon | string | CSS class name for rendering button collapsing Object and Array nodes. Default content is ` ▾ ` . |
120
121
| expandIcon | string | CSS class name for rendering button expanding Object and Array nodes. Default content is ` ▸ ` . |
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export interface StyleProps {
17
17
expandIcon : string ;
18
18
collapseIcon : string ;
19
19
collapsedContent : string ;
20
+ childFieldsContainer : string ;
20
21
noQuotesForStringValues ?: boolean ;
21
22
quotesForFieldNames ?: boolean ;
22
23
}
@@ -161,7 +162,7 @@ function ExpandableObject({
161
162
< span className = { style . punctuation } > { openBracket } </ span >
162
163
163
164
{ expanded ? (
164
- < ul id = { contentsId } role = 'group' >
165
+ < ul id = { contentsId } role = 'group' className = { style . childFieldsContainer } >
165
166
{ data . map ( ( dataElement , index ) => (
166
167
< DataRender
167
168
key = { dataElement [ 0 ] || index }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export interface Props extends React.AriaAttributes {
12
12
export const defaultStyles : StyleProps = {
13
13
container : styles [ 'container-light' ] ,
14
14
basicChildStyle : styles [ 'basic-element-style' ] ,
15
+ childFieldsContainer : styles [ 'child-fields-container' ] ,
15
16
label : styles [ 'label-light' ] ,
16
17
clickableLabel : styles [ 'clickable-label-light' ] ,
17
18
nullValue : styles [ 'value-null-light' ] ,
@@ -31,6 +32,7 @@ export const defaultStyles: StyleProps = {
31
32
export const darkStyles : StyleProps = {
32
33
container : styles [ 'container-dark' ] ,
33
34
basicChildStyle : styles [ 'basic-element-style' ] ,
35
+ childFieldsContainer : styles [ 'child-fields-container' ] ,
34
36
label : styles [ 'label-dark' ] ,
35
37
clickableLabel : styles [ 'clickable-label-dark' ] ,
36
38
nullValue : styles [ 'value-null-dark' ] ,
Original file line number Diff line number Diff line change 53
53
}
54
54
55
55
.basic-element-style {
56
- margin : 0 10 px ;
57
- padding : 0 ;
56
+ margin : 0 ;
57
+ padding : 0 10 px ;
58
58
}
59
59
60
- .basic-element-style > ul {
60
+ .child-fields-container {
61
61
margin : 0 ;
62
62
padding : 0 ;
63
63
}
You can’t perform that action at this time.
0 commit comments