Skip to content

Commit cd593bc

Browse files
committed
Make positioning of Alert icon more robust
1 parent 03f25b1 commit cd593bc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/lib/components/ui/Alert/Alert.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
}
66

77
.icon {
8-
position: relative;
9-
top: 1px;
108
display: flex;
11-
flex-direction: column;
9+
flex: none;
1210
align-items: center;
1311
align-self: flex-start;
14-
justify-content: flex-start;
12+
justify-content: center;
13+
height: calc(#{$alert-line-height} * #{$alert-font-size});
1514
}
1615

1716
.message {

src/lib/components/ui/Alert/_mixins.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
@mixin alert() {
66
position: relative;
77
display: flex;
8-
align-items: center;
98
width: 100%;
109
min-height: $alert-min-height;
1110
padding: $alert-padding;

0 commit comments

Comments
 (0)