Skip to content

A platform for community discussion. Free, open, simple.

UX: Various improvements to JSON Schema editor (#24543)

Osama Sayegh6e4648a2c405
diff --git a/app/assets/stylesheets/common/base/json_schema.scss b/app/assets/stylesheets/common/base/json_schema.scss
index f9392fa48a8..036fb0ca7df 100644
--- a/app/assets/stylesheets/common/base/json_schema.scss
+++ b/app/assets/stylesheets/common/base/json_schema.scss
@@ -171,6 +171,10 @@
.je-tab--top {
border: none;
padding: 0;
+ color: var(--primary);
+ background: var(
+ --secondary
+ ) !important; // important is needed here to override inline styling on the element
}
}
@@ -243,5 +247,21 @@
}
}
}
+
+ div[data-schematype="boolean"] {
+ label {
+ display: flex;
+ align-items: center;
+
+ input[type="checkbox"] {
+ margin-right: var(--space-1);
+ }
+ }
+ }
+
+ select option {
+ color: var(--primary);
+ background: var(--secondary);
+ }
}
}