Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions src/design-system/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,30 @@ export const Alert = () => {

return (
<Prompt zIndex={zIndexes.ALERT} show={visible} handleClose={onClose}>
<Box padding="20px">
<Box padding="20px" style={{ maxHeight: '85vh', overflow: 'hidden' }}>
<Stack space="20px">
<Box style={{ wordBreak: 'break-word' }}>
<Box style={{ wordBreak: 'break-word', minWidth: 0 }}>
<Stack space="12px">
<Text align="center" color="label" size="14pt" weight="medium">
{alert.text}
</Text>
{alert.description && (
<Text align="center" color="label" size="12pt" weight="regular">
{alert.description}
</Text>
<Box
style={{
maxHeight: 200,
overflow: 'auto',
wordBreak: 'break-word',
}}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drifting away from the design system primitives here. When mocking this or fixing a layout issue, would point Codex at the design-system/ library and ask it to critique and itterate based on the design system constraints

>
<Text
align="center"
color="label"
size="12pt"
weight="regular"
>
{alert.description}
</Text>
</Box>
)}
</Stack>
</Box>
Expand Down
Loading
Loading