Skip to content

Commit

Permalink
fix(alert): improve position of icon on single line (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefialho authored Aug 23, 2024
1 parent 01df955 commit 9c587d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/src/components/alert/alert.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import '~@atomium/scss-utils/index';

$min-height-title: var(--spacing-large);

:host {
--close-size: var(--spacing-xxxlarge);
--icon-size: var(--spacing-medium);
Expand Down Expand Up @@ -75,6 +77,7 @@
.atom-title {
font-weight: var(--font-weight-bold);
margin: 0;
min-height: $min-height-title;

&:not(:last-child) {
margin-bottom: var(--spacing-xsmall);
Expand Down Expand Up @@ -118,8 +121,10 @@
}

.atom-icon {
align-items: center;
display: flex;
font-size: var(--icon-size);
width: var(--space-large);
height: $min-height-title;
}

.atom-close {
Expand Down

0 comments on commit 9c587d6

Please sign in to comment.