Skip to content

Commit 9443942

Browse files
authored
update css vars (#27)
- deprecate unused vars - add separate bg color for undefined fixes #25
1 parent cb5da78 commit 9443942

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Theming can be done with CSS variables
6161
--ngx-json-null /* color of null values */
6262
--ngx-json-null-bg /* background color of null values */
6363
--ngx-json-undefined /* color of undefined values */
64+
--ngx-json-undefined-bg /* background color of undefined values */
6465
--ngx-json-toggler /* color of toggler */
6566
--ngx-json-key /* color of keys */
6667
--ngx-json-punctuation /* color of punctuation (':', '{', '}', etc) */

projects/ngx-json-treeview/src/lib/ngx-json-treeview.component.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ $type-colors: (
33
number: var(--ngx-json-number, #098658),
44
boolean: var(--ngx-json-boolean, #a31515),
55
date: var(--ngx-json-date, #05668d),
6-
array: var(--ngx-json-array, #656e77),
7-
object: var(--ngx-json-object, #656e77),
86
function: var(--ngx-json-function, #656e77),
97
'null': var(--ngx-json-null, #fff),
108
undefined: var(--ngx-json-undefined, #fff),
@@ -74,7 +72,7 @@ $type-colors: (
7472
color: var(--ngx-json-undefined-key, #a31515);
7573
}
7674
& > .segment-value {
77-
background-color: var(--ngx-json-undefined-key, #656e77);
75+
background-color: var(--ngx-json-undefined-bg, #656e77);
7876
}
7977
}
8078
.segment-type-object > .segment-main,

0 commit comments

Comments
 (0)