Skip to content

Commit

Permalink
fix(radio): reverse order of elements in RTL (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored Nov 26, 2019
1 parent e85830f commit 2e61d8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
font-size: nb-theme(radio-text-font-size);
font-weight: nb-theme(radio-text-font-weight);
line-height: nb-theme(radio-text-line-height);
margin-left: nb-theme(radio-width);
@include nb-ltr(margin-left, nb-theme(radio-width));
@include nb-rtl(margin-right, nb-theme(radio-width));
}
}
}
7 changes: 5 additions & 2 deletions src/framework/theme/components/radio/radio.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
display: inline-flex;
margin: 0;
min-height: inherit;
padding: 0.375rem 1.5rem 0.375rem 0;
padding: 0.375rem 0;
@include nb-ltr(padding-right, 1.5rem);
@include nb-rtl(padding-left, 1.5rem);
align-items: center;
}

Expand All @@ -23,7 +25,8 @@
border-radius: 50%;
position: absolute;
top: 50%;
left: 0;
@include nb-ltr(left, 0);
@include nb-rtl(right, 0);
transform: translateY(-50%);
}

Expand Down

0 comments on commit 2e61d8d

Please sign in to comment.