Skip to content

Commit

Permalink
Fix HD Toast icon alignment (#4357)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Wooding <[email protected]>
  • Loading branch information
liamsms and joshwooding authored Jan 21, 2025
1 parent eed82f8 commit c5d61e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wet-swans-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@salt-ds/core": patch
---

Fixed Toast icon alignment.
2 changes: 1 addition & 1 deletion packages/core/src/toast/Toast.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

/* Styles applied to icon */
.saltToast-iconContainer > .saltIcon {
margin: calc(var(--salt-spacing-75) + 2px) 0 var(--salt-spacing-75) 0;
margin-top: calc(var(--salt-spacing-75) + calc((var(--salt-text-lineHeight) - max(var(--salt-size-icon), 12px)) / 2));
color: var(--toast-iconColor);
}

Expand Down

0 comments on commit c5d61e2

Please sign in to comment.