Skip to content
Open
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
25 changes: 8 additions & 17 deletions packages/@react-spectrum/s2/src/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,14 @@ const toastRegion = style({
},
boxSizing: 'border-box',
maxHeight: 'full',
borderRadius: 'lg'
borderRadius: 'lg',
// Spacing lives here rather than in the list so it does not scroll away with the toasts.
paddingY: {
isExpanded: 8
},
gap: {
isExpanded: 8
}
});

const toastList = style({
Expand All @@ -227,22 +234,6 @@ const toastList = style({
// Add padding when expanded to account for focus ring.
isExpanded: 8
},
paddingBottom: {
isExpanded: {
placement: {
top: 8,
bottom: 16
Comment thread
Zakkaus marked this conversation as resolved.
}
}
},
paddingTop: {
isExpanded: {
placement: {
top: 16,
bottom: 8
}
}
},
margin: 0,
marginX: {
default: 0,
Expand Down
Loading