fix(alert): vertically center alert content
Add align-items: center to .alert flex container and remove bottom margin from .alert-title that was offsetting the text.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
.alert {
|
.alert {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
gap: var(--size-3);
|
gap: var(--size-3);
|
||||||
padding: var(--size-4) var(--size-6);
|
padding: var(--size-4) var(--size-6);
|
||||||
background: var(--bg-1);
|
background: var(--bg-1);
|
||||||
@@ -11,7 +12,7 @@
|
|||||||
|
|
||||||
.alert-title {
|
.alert-title {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0 0 var(--size-1) 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert-body {
|
.alert-body {
|
||||||
|
|||||||
Reference in New Issue
Block a user