Skip to content

Commit

Permalink
UHF-8489: Improve icon margins and add support for data-icon-end
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkkimaagi committed Sep 27, 2023
1 parent 5ca1537 commit b955e0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scss/05_objects/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,12 @@ a[data-variant][href] {
margin-block: -2px;

&:not(:last-child) {
margin-left: -8px;
margin-inline-start: -8px; // When the icon is not alone, it should be closer to left edge on LTR languages
}
}

&:where(
[data-icon-end],
[data-is-external],
[data-protocol='tel'],
[data-protocol='mailto']
Expand All @@ -561,7 +562,7 @@ a[data-variant][href] {
margin-block: -2px;

&:not(:first-child) {
margin-right: -8px;
margin-inline-end: -8px; // When the icon is not alone, it should be closer to right edge on LTR languages
}
}

Expand Down

0 comments on commit b955e0f

Please sign in to comment.