Skip to content

Commit

Permalink
fix(switcher): fix css for label left (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and GitHub Enterprise committed Oct 11, 2024
1 parent c0f5b36 commit 22354ca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions projects/ng-aquila/src/switcher/switcher.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

$switcher-border-radius: nx-border-radius(m);

.nx-switcher-control {
:host {
position: relative;
display: flex;
}

.nx-switcher-control .is-swapped .nx-switcher__label {
flex-direction: row-reverse;
&.is-swapped .nx-switcher__label {
flex-direction: row-reverse;

&.has-label .nx-switcher__toggle {
margin-left: nx-spacer(xs);
&.has-label .nx-switcher__toggle {
margin-left: nx-spacer(xs);

[dir='rtl'] & {
margin-right: nx-spacer(xs);
margin-left: initial;
[dir='rtl'] & {
margin-right: nx-spacer(xs);
margin-left: initial;
}
}
}
}
Expand Down

0 comments on commit 22354ca

Please sign in to comment.