Skip to content

Commit df5c160

Browse files
committed
style(Icon): flex center items within icon
1 parent fc9eaa2 commit df5c160

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/Icon/_Icon.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.ui__icon {
2-
display: flex;
2+
@include flex-center;
33
}

src/components/Toast/Toast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const Toast: FC<ToastProps> = ({
5454
}
5555
}, [message]);
5656

57-
const toastClass = classnames('ui__base ui__toast', `ui__toast--type-${message}`, className);
57+
const toastClass = classnames('ui__base ui__toast', `ui__toast--message-${message}`, className);
5858

5959
return (
6060
<div

src/components/Toast/_Toast.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
max-width: 500px;
1616
}
1717

18-
&--type {
18+
&--message {
1919
&-info {
2020
.ui__toast__border {
2121
background-color: $color-message-info;

src/components/Toast/__snapshots__/Toast.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`Toast component snapshot renders default toast 1`] = `
44
<div
55
aria-atomic={true}
66
aria-live="polite"
7-
className="ui__base ui__toast ui__toast--type-info"
7+
className="ui__base ui__toast ui__toast--message-info"
88
role="status"
99
>
1010
<div

0 commit comments

Comments
 (0)