@@ -241,4 +241,36 @@ describe("desktop component theme contract", () => {
241241
242242 expectNoRawShadowValues ( darkSharedActive ) ;
243243 } ) ;
244+
245+ it ( "centers compact source-card controls without broad span overrides" , ( ) => {
246+ const sourceReadyCopy = cssBlock ( ".source-ready-card strong,\n.source-ready-card > div > span" ) ;
247+ const sourceReadyControls = cssBlock (
248+ ".source-ready-card .status-pill,\n.source-ready-card .secondary-button.compact,\n.connector-choice-card .primary-button.compact,\n.connector-choice-card .secondary-button.compact,\n.mount-details-button" ,
249+ ) ;
250+ const sourceReadyControlIcons = cssBlock (
251+ ".source-ready-card .secondary-button.compact svg,\n.connector-choice-card .primary-button.compact svg,\n.connector-choice-card .secondary-button.compact svg,\n.mount-details-button svg" ,
252+ ) ;
253+ const sourceReadyButtonText = cssBlock (
254+ ".source-ready-card .secondary-button.compact span,\n.connector-choice-card .primary-button.compact span,\n.connector-choice-card .secondary-button.compact span" ,
255+ ) ;
256+
257+ expect ( styles ) . not . toMatch ( / \. s o u r c e - r e a d y - c a r d s t r o n g , \s * \. s o u r c e - r e a d y - c a r d s p a n \s * \{ / ) ;
258+ expect ( sourceReadyCopy ) . toContain ( "display: block;" ) ;
259+ expect ( sourceReadyControls ) . toContain ( "display: inline-flex;" ) ;
260+ expect ( sourceReadyControls ) . toContain ( "align-items: center;" ) ;
261+ expect ( sourceReadyControls ) . toContain ( "justify-content: center;" ) ;
262+ expect ( sourceReadyControls ) . toContain ( "line-height: 1;" ) ;
263+ expect ( sourceReadyControlIcons ) . toContain ( "flex: 0 0 auto;" ) ;
264+ expect ( sourceReadyControlIcons ) . toContain ( "width: 13px;" ) ;
265+ expect ( sourceReadyControlIcons ) . toContain ( "height: 13px;" ) ;
266+ expect ( sourceReadyButtonText ) . toContain ( "display: inline-flex;" ) ;
267+ expect ( sourceReadyButtonText ) . toContain ( "align-items: center;" ) ;
268+ expect ( sourceReadyButtonText ) . toContain ( "line-height: 1;" ) ;
269+ } ) ;
270+
271+ it ( "keeps collapsed sidebar navigation spaced below the mark" , ( ) => {
272+ const collapsedNav = cssBlock ( ".sidebar-collapsed .sidebar nav" ) ;
273+
274+ expect ( collapsedNav ) . toContain ( "margin-top: 10px;" ) ;
275+ } ) ;
244276} ) ;
0 commit comments