diff --git a/packages/ui/src/components/dock-card.css b/packages/ui/src/components/dock-card.css index c5817527d..1aeb9f2a6 100644 --- a/packages/ui/src/components/dock-card.css +++ b/packages/ui/src/components/dock-card.css @@ -1,5 +1,5 @@ [data-dock="card"] { - background-color: var(--bg-base); + background-color: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--border-weak), var(--shadow-raised); overflow: hidden; @@ -8,7 +8,6 @@ } :root[data-color-scheme="dark"] [data-dock="card"] { - background-color: var(--surface-raised); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } diff --git a/packages/ui/src/components/picker.css b/packages/ui/src/components/picker.css index 73fffb386..b286384c3 100644 --- a/packages/ui/src/components/picker.css +++ b/packages/ui/src/components/picker.css @@ -29,7 +29,7 @@ } [data-picker-content] { - background-color: var(--surface-base); + background-color: var(--surface-raised); border-radius: var(--radius-md); padding: 4px; box-shadow: var(--ring-base), var(--shadow-floating); diff --git a/packages/ui/src/components/picker.test.ts b/packages/ui/src/components/picker.test.ts index 0e086ab6a..8004fab64 100644 --- a/packages/ui/src/components/picker.test.ts +++ b/packages/ui/src/components/picker.test.ts @@ -52,11 +52,11 @@ describe("picker.css: trigger contract", () => { }) describe("picker.css: content contract", () => { - test("content uses --surface-base background", () => { + test("content uses --surface-raised background", () => { const contentIdx = css.indexOf("[data-picker-content] {") expect(contentIdx).toBeGreaterThan(-1) const block = css.slice(contentIdx, contentIdx + 300) - expect(block).toContain("--surface-base") + expect(block).toContain("--surface-raised") }) test("content uses --radius-md", () => { diff --git a/packages/ui/src/components/popover.css b/packages/ui/src/components/popover.css index 2e08c245f..18c375ec7 100644 --- a/packages/ui/src/components/popover.css +++ b/packages/ui/src/components/popover.css @@ -5,7 +5,7 @@ [data-component="popover-content"] { z-index: 50; border-radius: var(--radius-md); - background-color: var(--surface-base); + background-color: var(--surface-raised); background-clip: padding-box; box-shadow: var(--ring-base), var(--shadow-floating); @@ -113,24 +113,25 @@ &:hover, &[data-force-state="hover"] { - background: var(--bg-cream); + background: var(--row-hover-overlay); } &[data-active], &[data-force-state="active"] { - background: var(--bg-cream); + background: var(--surface-interactive-base); opacity: 0.8; } &:focus-visible, &[data-force-state="focus-visible"] { outline: none; - background: var(--bg-cream); + background: var(--row-hover-overlay); } &[data-selected], &[data-force-state="selected"] { - background: var(--bg-cream); + background: var(--surface-interactive-base); + font-weight: var(--font-weight-emphasis); } &[data-disabled], diff --git a/packages/ui/src/components/popover.stories.tsx b/packages/ui/src/components/popover.stories.tsx index fab1fbb91..e62623afd 100644 --- a/packages/ui/src/components/popover.stories.tsx +++ b/packages/ui/src/components/popover.stories.tsx @@ -63,7 +63,7 @@ export const MenuMatrix = { {/* Light */}