Skip to content

Commit 76f61a6

Browse files
fix(toast-notification): match updated spec (#8165)
* fix(toast-notification): update notification icon spacing * fix(toast-notification): update left padding * fix(Notification): remove inline width rule Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 431e5fc commit 76f61a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/components/src/components/notification/_toast-notification.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
margin-top: $carbon--spacing-03;
3232
margin-right: $carbon--spacing-05;
3333
margin-bottom: $carbon--spacing-03;
34-
padding-left: rem(14px);
34+
padding-left: $carbon--spacing-05;
3535
color: $inverse-01;
3636
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
3737

@@ -133,8 +133,8 @@
133133

134134
.#{$prefix}--toast-notification__icon {
135135
flex-shrink: 0;
136-
margin-top: rem(14px);
137-
margin-right: rem(14px);
136+
margin-top: $carbon--spacing-05;
137+
margin-right: $carbon--spacing-05;
138138
}
139139

140140
.#{$prefix}--toast-notification__details {

packages/react/src/components/Notification/Notification-story.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const Toast = () => (
6161
<ToastNotification
6262
{...notificationProps()}
6363
caption={text('Caption (caption)', '00:00:00 AM')}
64-
style={{ minWidth: '30rem', marginBottom: '.5rem' }}
64+
style={{ marginBottom: '.5rem' }}
6565
/>
6666
);
6767

0 commit comments

Comments
 (0)