@@ -56,6 +56,10 @@ const buttonStyles = readFileSync(
5656 `${ process . cwd ( ) } /src/components/ui/button/index.module.css` ,
5757 "utf8"
5858) ;
59+ const popoverStyles = readFileSync (
60+ `${ process . cwd ( ) } /src/components/ui/popover/index.module.css` ,
61+ "utf8"
62+ ) ;
5963const inputStyles = readFileSync (
6064 `${ process . cwd ( ) } /src/components/ui/input/index.module.css` ,
6165 "utf8"
@@ -387,6 +391,13 @@ describe("components.css theme-sensitive surfaces", () => {
387391 ) ;
388392 } ) ;
389393
394+ it ( "keeps desktop popovers above modal shells so picker overlays are not occluded" , ( ) => {
395+ expect ( getLastRuleBlockFrom ( modalStylesheet , ":global(.modal-overlay)" ) ) . toContain (
396+ "z-index: var(--z-modal-backdrop)"
397+ ) ;
398+ expect ( getLastRuleBlockFrom ( popoverStyles , ".content" ) ) . toContain ( "z-index: var(--z-popover)" ) ;
399+ } ) ;
400+
390401 it ( "maps display and status primitives onto semantic typography roles" , ( ) => {
391402 expect ( getLastRuleBlockFrom ( tagStyles , ":where(.tag)" ) ) . toContain (
392403 "font-size: var(--type-kicker-size)"
@@ -1172,6 +1183,9 @@ describe("components.css theme-sensitive surfaces", () => {
11721183 / \s + / g,
11731184 " "
11741185 ) ;
1186+ const supervisorDetailInputs = getLastGroupedRuleBlock (
1187+ / \. m o b i l e - s u p e r v i s o r - s h e e t _ _ d e t a i l \. i n p u t , \s * \n \s * \. m o b i l e - s u p e r v i s o r - s h e e t _ _ d e t a i l \. m o b i l e - s e l e c t - t r i g g e r , \s * \n \s * \. m o b i l e - s u p e r v i s o r - s h e e t _ _ d e t a i l \. t e x t a r e a \s * \{ ( [ ^ } ] * ) \} / g
1188+ ) ;
11751189 const supervisorFullscreenFooter = getLastRuleBlock (
11761190 ".mobile-supervisor-sheet.mobile-sheet--fullscreen .mobile-sheet__footer"
11771191 ) . replace ( / \s + / g, " " ) ;
@@ -1190,6 +1204,9 @@ describe("components.css theme-sensitive surfaces", () => {
11901204 expect ( supervisorRoot ) . not . toContain ( "box-shadow:" ) ;
11911205 expect ( supervisorDetail ) . toContain ( "padding: var(--sp-3)" ) ;
11921206 expect ( supervisorDetail ) . toContain ( "padding-bottom: var(--sp-4)" ) ;
1207+ expect ( supervisorDetailInputs ) . toContain ( "font-size: var(--type-label-size)" ) ;
1208+ expect ( supervisorDetailInputs ) . toContain ( "line-height: var(--type-label-line-height)" ) ;
1209+ expect ( supervisorDetailInputs ) . toContain ( "font-weight: var(--type-label-weight)" ) ;
11931210 expect ( supervisorDetail ) . not . toContain ( "border: 1px solid" ) ;
11941211 expect ( supervisorDetail ) . not . toContain ( "border-radius:" ) ;
11951212 expect ( supervisorDetail ) . not . toContain ( "box-shadow:" ) ;
0 commit comments