Show the label colors in Manage labels again

The default field rule of Project Management excluded the find bar with
:not(.rs-find-bar input). That exclusion raised the specificity of the
rule above the rule of each control. Thus the color swatches, the card
title field, the switches, and the date field got the default field
background.

:where() inside :not() keeps the exclusion and adds no specificity.
A new smoke test checks the 16 swatch colors and the card title field in
both themes. Card 0efb6b6e.
This commit is contained in:
Knotty Wyvern
2026-10-31 17:33:07 -07:00
parent bc15f70a34
commit 8e2df5544a
2 changed files with 42 additions and 3 deletions
+4 -3
View File
@@ -67,7 +67,7 @@
cursor: default;
}
.rs-pm button:not(.rs-picker-row):not([role^="menuitem"]):focus-visible,
.rs-pm input:not(.rs-find-bar input):focus-visible,
.rs-pm input:not(:where(.rs-find-bar input)):focus-visible,
.rs-pm select:focus-visible,
.rs-pm textarea:focus-visible {
outline: 1px solid var(--pm-accent);
@@ -196,7 +196,8 @@
.pm-search-row input {
width: min(340px, 100%);
}
.rs-pm input:not(.rs-find-bar input),
/* The find bar exclusion adds no specificity, so the rules of each control can replace these defaults. */
.rs-pm input:not(:where(.rs-find-bar input)),
.rs-pm select,
.rs-pm textarea {
background: var(--pm-field-surface);
@@ -205,7 +206,7 @@
padding: 6px 8px;
min-height: 30px;
}
.rs-pm input[type="checkbox"]:not(.rs-find-bar input) {
.rs-pm input[type="checkbox"]:not(:where(.rs-find-bar input)) {
min-height: 0;
width: 16px;
height: 16px;