Skip to content

Commit

Permalink
fix(Notification): fix icon styling (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa18289 authored Mar 7, 2025
1 parent fb677cf commit 66640a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
padding-inline-end: calc(
var(--button-width) + var(--heading--icon-to-text-spacing)
);

.icon {
height: var(--heading-line-height);
width: var(--heading-line-height);
vertical-align: bottom;
display: inline-block;
margin-inline-end: var(--heading--icon-to-text-spacing);
}
}

.text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Notification: FC<NotificationProps> = (props) => {
level: 4,
children: dynamic((props) => (
<>
<AlertIcon status={status} />
<AlertIcon status={status} className={styles.icon} />
{props.children}
</>
)),
Expand Down

0 comments on commit 66640a4

Please sign in to comment.