@cloudscape-design/components-themeable 3.0.1355 → 3.0.1356

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "8ca13603c7f891ce74d343a0caffd6cff0bcab00"
2
+ "commit": "6ecc94b1c3c12f772db8a5e7076d17d46ef3681b"
3
3
  }
@@ -352,12 +352,14 @@ $nav-caret-pad-one-theme: 12px; // 24px minus the one-theme x-small (12px) icon
352
352
  .content-inner {
353
353
  /* this comment keeps the class in the style sheet */
354
354
  @include theming.one-theme-only {
355
- // overflow: visible lets negative-margin backgrounds (e.g. side-navigation
356
- // active/hover/focus states) bleed past the inline edges.
357
- overflow-x: visible;
358
- // overflow: clip (not hidden, which would coerce x-axis to auto) still lets the grid-row track collapse.
355
+ // Grid item of .content above. `clip` rather than `hidden`: `hidden` coerces the inline axis
356
+ // to `auto`, making this a scroll container on both axes, where `clip` leaves the inline axis
357
+ // `visible` so content that paints outside the box (focus rings, inline popovers) survives.
359
358
  overflow-y: clip;
360
359
  min-block-size: 0;
360
+ // A grid item's automatic minimum size is content-based on this axis too, so content that
361
+ // manages its own inline overflow (e.g. a table) would stretch the box out of the container.
362
+ min-inline-size: 0;
361
363
  opacity: 0;
362
364
 
363
365
  // HIDE (collapsed state): quick opacity collapse, no delay.
@@ -541,12 +543,14 @@ $nav-caret-pad-one-theme: 12px; // 24px minus the one-theme x-small (12px) icon
541
543
  }
542
544
  }
543
545
 
544
- // min-block-size: 0 lets this grid item collapse to zero height when an ancestor
545
- // uses grid-template-rows: 0fr (side-navigation section header collapse).
546
- // Must remain global (not scoped to .header-icon-end) because the side-nav
547
- // collapse targets the header wrapper regardless of icon position.
546
+ // Side-navigation makes this box a grid item (its section wrapper sets display: grid with
547
+ // grid-template-rows: 0fr to collapse), and a grid item's automatic minimum size is content-based on
548
+ // both axes: zero the block axis so the header collapses to zero, zero the inline axis so wide content
549
+ // cannot stretch it past the track. It belongs here rather than on side-navigation's grid container,
550
+ // because a container's min-size does not participate in track sizing.
548
551
  .header-content {
549
552
  min-block-size: 0;
553
+ min-inline-size: 0;
550
554
  }
551
555
 
552
556
  // In the end-icon layout, header content elements must shrink without overflowing.