Alerting: Detail view part 3 (#81286)

This commit is contained in:
Gilles De Mey
2024-02-07 18:02:20 +01:00
committed by GitHub
parent 3464b6e581
commit 791ead7806
20 changed files with 335 additions and 208 deletions

View File

@@ -74,7 +74,9 @@ export const Alert = React.forwardRef<HTMLDivElement, Props>(
</Box>
<Box paddingY={1} grow={1}>
<Text weight="medium">{title}</Text>
<Text color="primary" weight="medium">
{title}
</Text>
{children && <div className={styles.content}>{children}</div>}
</Box>
{/* If onRemove is specified, giving preference to onRemove */}
@@ -151,6 +153,7 @@ const getStyles = (
color: color.text,
}),
content: css({
color: theme.colors.text.primary,
paddingTop: hasTitle ? theme.spacing(0.5) : 0,
maxHeight: '50vh',
overflowY: 'auto',