Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Fix style issue when "array of objects" contains another object #212

Merged
merged 2 commits into from
Jul 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions example/swagger-files/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@
},
"name": {
"type": "string"
},
"object": {
"type": "object",
"properties": {
"a": {
"type": "string"
}
}
}
}
}
Expand Down
14 changes: 13 additions & 1 deletion packages/api-explorer/api-explorer.css
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ form.rjsf button[disabled] {
padding: 3px 6px;
}

.field.field-array-of-object legend::after {
.field.field-array-of-object > legend::after {
color: rgba(0, 0, 0, 0.6);
content: 'array of objects';
background: #f2f2f2;
Expand All @@ -323,6 +323,18 @@ form.rjsf button[disabled] {
padding: 3px 6px;
}

fieldset[id^='root_array of objects_'] > legend::after {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me! (tho this change may be superseded by my UI updates in #228)

content: 'object';
color: rgba(0, 0, 0, 0.6);
background: #f2f2f2;
border-radius: 3px;
font-family: 'Proxima Nova', sans-serif;
font-size: 11px;
font-weight: lighter;
margin-left: 10px;
padding: 3px 6px;
}

.field.field-array-of-boolean legend::after {
color: rgba(0, 0, 0, 0.6);
content: 'array of booleans';
Expand Down