@moderneinc/design-system-components 7.4.0-next.18db11 → 7.4.0-next.2e9ad2

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.
package/dist/index.esm.js CHANGED
@@ -527,6 +527,12 @@ const StyledAlert$2 = styled(Alert, {
527
527
  display: 'flex',
528
528
  flexDirection: 'column',
529
529
  justifyContent: hasChildren ? 'flex-start' : 'center',
530
+ // Stretch + scroll instead of spilling past the fixed-height border.
531
+ ...(!hasChildren && {
532
+ alignSelf: 'stretch',
533
+ overflowY: 'auto',
534
+ minHeight: 0,
535
+ }),
530
536
  '& span:last-child': {
531
537
  fontSize: theme.typography.pxToRem(typography.fontSize.sm),
532
538
  fontWeight: typography.fontWeight.medium,