Skip to content

Commit 8c0395f

Browse files
committed
fix(web): restore solid overlay surfaces for pickers
1 parent 76be3fa commit 8c0395f

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

packages/web/src/components/ui/popover/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
padding: var(--inset-panel);
1616
border: 1px solid var(--surface-overlay-border);
1717
border-radius: var(--radius-overlay);
18-
background: var(--material-overlay);
18+
background: var(--surface-overlay-bg);
1919
}

packages/web/src/components/ui/select/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
flex-direction: column;
3737
gap: var(--sp-1);
3838
padding: var(--sp-1);
39-
background: var(--material-overlay);
39+
background: var(--surface-overlay-bg);
4040
border: 1px solid var(--border);
4141
border-radius: var(--radius-md);
4242
box-shadow: var(--shadow-lg);

packages/web/src/styles/components.theme.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ describe("components.css theme-sensitive surfaces", () => {
626626
expect(getLastRuleBlockFrom(actionMenuStyles, ".itemDanger:hover")).toContain(
627627
"background: var(--menu-danger-hover-bg)"
628628
);
629+
expect(getLastRuleBlockFrom(popoverStyles, ".content")).toContain(
630+
"background: var(--surface-overlay-bg)"
631+
);
629632

630633
expect(getLastRuleBlockFrom(datetimePickerStyles, ".calendar")).toContain(
631634
"border: 1px dashed var(--border-default)"
@@ -646,7 +649,7 @@ describe("components.css theme-sensitive surfaces", () => {
646649
"border-bottom: 2px solid var(--state-selected-border)"
647650
);
648651
expect(getLastRuleBlockFrom(selectStylesheet, ".listbox")).toContain(
649-
"background: var(--material-overlay)"
652+
"background: var(--surface-overlay-bg)"
650653
);
651654
expect(getLastRuleBlockFrom(selectStylesheet, ".optionSelected")).toContain(
652655
"background: var(--state-hover-bg)"

0 commit comments

Comments
 (0)