@@ -654,7 +654,7 @@ describe("components.css theme-sensitive surfaces", () => {
654654 "background: var(--state-error-bg)"
655655 ) ;
656656
657- expect ( modalOverlay ) . toContain ( "background: var(--surface- overlay-backdrop)" ) ;
657+ expect ( modalOverlay ) . toContain ( "background: var(--overlay-backdrop)" ) ;
658658 expect (
659659 getRuleBlocksFrom ( modalStyles , ".card" ) . some ( ( block ) =>
660660 block . includes ( "border: 1px solid var(--surface-overlay-border)" )
@@ -676,7 +676,7 @@ describe("components.css theme-sensitive surfaces", () => {
676676 )
677677 ) . toBe ( true ) ;
678678
679- expect ( drawerBackdrop ) . toContain ( "background: var(--surface- overlay-backdrop)" ) ;
679+ expect ( drawerBackdrop ) . toContain ( "background: var(--overlay-backdrop)" ) ;
680680 expect (
681681 getRuleBlocksFrom ( drawerStylesheet , ".panel" ) . some ( ( block ) =>
682682 block . includes ( "border: 1px solid var(--surface-overlay-border)" )
@@ -698,7 +698,7 @@ describe("components.css theme-sensitive surfaces", () => {
698698 )
699699 ) . toBe ( true ) ;
700700
701- expect ( localOverlay ) . toContain ( "background: var(--surface- overlay-backdrop)" ) ;
701+ expect ( localOverlay ) . toContain ( "background: var(--overlay-backdrop)" ) ;
702702 expect ( localOverlayCard ) . toContain ( "border: 1px solid var(--surface-overlay-border)" ) ;
703703 expect ( localOverlayCard ) . toContain ( "border-radius: var(--radius-local-overlay)" ) ;
704704 expect ( localOverlayCard ) . toContain ( "background: var(--surface-overlay-bg)" ) ;
@@ -1041,6 +1041,14 @@ describe("components.css theme-sensitive surfaces", () => {
10411041 expect ( sheetActions ) . toContain ( "gap: var(--gap-compact)" ) ;
10421042 } ) ;
10431043
1044+ it ( "keeps mobile sheet and drawer backdrops on the shared overlay backdrop token" , ( ) => {
1045+ const mobileSheetBackdrop = getLastRuleBlock ( ".mobile-sheet-layer__backdrop" ) ;
1046+ const mobileDrawerBackdrop = getLastRuleBlock ( ".mobile-drawer-layer__backdrop" ) ;
1047+
1048+ expect ( mobileSheetBackdrop ) . toContain ( "background: var(--overlay-backdrop)" ) ;
1049+ expect ( mobileDrawerBackdrop ) . toContain ( "background: var(--overlay-backdrop)" ) ;
1050+ } ) ;
1051+
10441052 it ( "keeps worktree state chips and mobile tabs on shared state and layer tokens" , ( ) => {
10451053 const cleanChip = getLastRuleBlock ( ".worktree-chip-status.worktree-clean" ) ;
10461054 const dirtyChip = getLastRuleBlock ( ".worktree-chip-status.worktree-dirty" ) ;
0 commit comments