Skip to content

Commit c06194a

Browse files
authored
Merge pull request #244 from seamapi/update-alert-style
2 parents 8b720e6 + c8f5581 commit c06194a

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

src/lib/ui/Alert/Alert.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ export function Alert(props: AlertProps): JSX.Element {
2424
className={classNames('seam-alert', `seam-${variant}-alert`, className)}
2525
>
2626
<div className='seam-alert-content'>
27-
<div className='seam-alert-icon'>
28-
{variant === 'warning' ? (
29-
<TriangleWarningIcon />
30-
) : (
31-
<ExclamationCircleIcon />
32-
)}
27+
<div className='seam-alert-icon-wrap'>
28+
<div className='seam-alert-icon'>
29+
{variant === 'warning' ? (
30+
<TriangleWarningIcon />
31+
) : (
32+
<ExclamationCircleIcon />
33+
)}
34+
</div>
3335
</div>
3436
<div className='seam-alert-message-wrap'>
3537
<p className='seam-alert-message'>{message}</p>

src/styles/_alert.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// Alert
1919
.seam-alert {
2020
width: 100%;
21-
min-height: 70px;
21+
min-height: 54px;
2222
padding: 8px 16px;
2323
border-radius: 8px;
2424
display: flex;
@@ -68,6 +68,11 @@
6868
margin-top: 16px;
6969
}
7070

71+
.seam-alert-icon-wrap {
72+
padding: 7px 8px;
73+
padding-left: 0;
74+
}
75+
7176
.seam-alert-icon {
7277
width: 24px;
7378
height: 24px;
@@ -76,12 +81,13 @@
7681
.seam-alert-content {
7782
display: flex;
7883
justify-content: flex-start;
79-
align-items: center;
84+
align-items: flex-start;
8085
flex-direction: row;
81-
gap: 8px;
8286
}
8387

8488
.seam-alert-message-wrap {
89+
padding: 8px 0;
90+
8591
.seam-alert-message {
8692
font-size: 14px;
8793
font-weight: 400;
@@ -91,7 +97,7 @@
9197
}
9298
}
9399

94-
@media only screen and (width <= 500px) {
100+
@media only screen and (width <=500px) {
95101
.seam-alert {
96102
justify-content: flex-start;
97103
flex-direction: column;

0 commit comments

Comments
 (0)