From 76564f4a95565aad733fe6cd3f30c12f4999e703 Mon Sep 17 00:00:00 2001 From: Andy Anderson Date: Tue, 17 Nov 2026 23:08:47 -0500 Subject: [PATCH] fix(customers): style tag chips as pills The chips used class .badge, which no stylesheet defines, so tags rendered as bare text. Style .customers-chip with design tokens. Regenerated static/index.html. Fixes #18882 Signed-off-by: Andy Anderson --- changelog.d/fixed-18882-customers-chip-style.md | 1 + src/pkg/dashboard/static-src/css/customers.css | 3 +++ src/pkg/dashboard/static/index.html | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 changelog.d/fixed-18882-customers-chip-style.md diff --git a/changelog.d/fixed-18882-customers-chip-style.md b/changelog.d/fixed-18882-customers-chip-style.md new file mode 100644 index 0000000000..447a296bec --- /dev/null +++ b/changelog.d/fixed-18882-customers-chip-style.md @@ -0,0 +1 @@ +- Customers tag chips now render as pills; they were bare unstyled text because the class they used had no CSS (#18882). diff --git a/src/pkg/dashboard/static-src/css/customers.css b/src/pkg/dashboard/static-src/css/customers.css index 3ae9926cc8..aa58e3211f 100644 --- a/src/pkg/dashboard/static-src/css/customers.css +++ b/src/pkg/dashboard/static-src/css/customers.css @@ -33,6 +33,9 @@ .customers-row[data-me="true"] { border-color: var(--accent); } .customers-row .customers-row-title { overflow-wrap: anywhere; } .customers-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); min-width: 0; } + /* The tag chip: the entity-chip pill recipe (design-system.css), tokens only. The old .badge class has no rule, which left tags as bare text. */ + .customers-chip { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 1px var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1.5; white-space: nowrap; } + button.customers-chip { cursor: pointer; min-height: var(--tap-target); } .customers-chip[data-state="off"] { opacity: 0.55; } .customers-chip[data-source="manual"] { border-color: var(--accent); } .customers-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: var(--sp-2); align-items: end; } diff --git a/src/pkg/dashboard/static/index.html b/src/pkg/dashboard/static/index.html index 32ff65a3f9..e02ca1334c 100644 --- a/src/pkg/dashboard/static/index.html +++ b/src/pkg/dashboard/static/index.html @@ -6429,6 +6429,9 @@ .customers-row[data-me="true"] { border-color: var(--accent); } .customers-row .customers-row-title { overflow-wrap: anywhere; } .customers-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); min-width: 0; } + /* The tag chip: the entity-chip pill recipe (design-system.css), tokens only. The old .badge class has no rule, which left tags as bare text. */ + .customers-chip { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 1px var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1.5; white-space: nowrap; } + button.customers-chip { cursor: pointer; min-height: var(--tap-target); } .customers-chip[data-state="off"] { opacity: 0.55; } .customers-chip[data-source="manual"] { border-color: var(--accent); } .customers-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: var(--sp-2); align-items: end; }