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