Skip to content

Commit

Permalink
fix: remove icon flex reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintonJason committed Oct 23, 2024
1 parent 0074e0a commit 93fcaaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions packages/sage-assets/lib/stylesheets/components/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,8 @@ $-icon-beside-type: (
--background-color: #{sage-color-combo($-color, default, background)};
}
}

// flip icons with directional names for RTL - MUST LIVE IN PINE
[dir="rtl"] pds-icon[name*="left"], [dir="rtl"] pds-icon[name*="right"] {
transform: scale(-1);
}
8 changes: 0 additions & 8 deletions packages/sage-assets/lib/stylesheets/core/mixins/_sage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@
.sage-link--icon-right-#{$icon-name} {
flex-direction: row-reverse;

[dir="rtl"] & {
flex-direction: row;
}

&::before {
@include sage-icon-base($icon-name, md, pine);

Expand All @@ -101,10 +97,6 @@
.sage-link--icon-left-#{$icon-name} {
flex-direction: row;

[dir="rtl"] & {
flex-direction: row-reverse;
}

&::before {
@include sage-icon-base($icon-name, md, pine);

Expand Down

0 comments on commit 93fcaaf

Please sign in to comment.