Skip to content

Commit 52ab9cb

Browse files
committed
Revert "fix(dialog-editor): raise inspector field labels to legible contrast"
This reverts commit ec45b2c.
1 parent 2911ca9 commit 52ab9cb

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

client/src/dialog-editor/webview/Inspector.svelte

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -726,13 +726,7 @@
726726
border-color: var(--vscode-panel-border);
727727
}
728728
.ik {
729-
/* Field labels (Option text / Condition / Target / ...) are primary UI text the user reads to identify
730-
each field, so use full foreground. descriptionForeground is VS Code's ~70%-alpha grey - it measures
731-
~3.97:1 on the panel background (fails WCAG AA 4.5:1) and is VS Code's token for secondary DESCRIPTION
732-
text, not field labels. The 9px uppercase styling already separates labels from values; contrast must
733-
not carry that job. Only the focused-option view renders these labels, which is why the node view
734-
(no labels) looked fine while the option view read as low-contrast. */
735-
color: var(--vscode-foreground);
729+
color: var(--vscode-descriptionForeground);
736730
font-size: 9px;
737731
text-transform: uppercase;
738732
margin-top: 8px;
@@ -911,8 +905,7 @@
911905
flex-wrap: wrap;
912906
}
913907
.rctlbl {
914-
/* Same as .ik: a field label, full foreground for AA contrast (descriptionForeground is ~3.97:1). */
915-
color: var(--vscode-foreground);
908+
color: var(--vscode-descriptionForeground);
916909
font-size: 9px;
917910
text-transform: uppercase;
918911
}

0 commit comments

Comments
 (0)