fix(sidebar): keep the host pill outlined on the selected workspace card (#37294)

* fix(sidebar): keep the host pill legible on the selected workspace card

* fix(sidebar): keep nested lineage cards out of the selected host pill rule

* fix(sidebar): leave the host pill label on its theme-validated color

* fix(sidebar): derive the selected host pill border from the validated sidebar foreground
This commit is contained in:
Neil
2026-11-01 19:27:49 -08:00
committed by GitHub
parent 37ce11aff1
commit 0ce6fa17c8
+7
View File
@@ -1518,6 +1518,13 @@ html.native-shell .app-layout {
box-shadow: 0 1px 2px color-mix(in srgb, var(--worktree-sidebar-foreground) 3%, transparent);
}
/* #15971: the wash matches the pill's fill, so its border carries the shape; 80% keeps >=3:1 wherever the validated foreground is >=4.5:1. */
@scope ([data-worktree-card-surface][data-worktree-card-active='primary']) to ([data-worktree-lineage-children]) {
[data-variant='hostContext'] {
border-color: color-mix(in srgb, var(--worktree-sidebar-foreground) 80%, transparent);
}
}
[data-worktree-card-surface][data-worktree-card-active='secondary'] {
border-color: color-mix(in srgb, var(--sidebar-ring) 25%, transparent);
background: color-mix(in srgb, var(--sidebar-accent) 45%, transparent);