Skip to content

Commit

Permalink
fix: add rtl for tokens (#627)
Browse files Browse the repository at this point in the history
* add rtl for tokens

* fix read-only rtl tokens and use cursor: default
  • Loading branch information
mikerodonnell89 authored and JKMarkowski committed Feb 7, 2020
1 parent 52d1390 commit d905104
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/token.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
$block: #{$fd-namespace}-token;

.#{$block} {
cursor: default;

@mixin fd-token-focus() {
@include fd-focus() {
box-shadow: none;
Expand Down Expand Up @@ -48,6 +50,11 @@ $block: #{$fd-namespace}-token;
flex: 1 0 auto;
border: var(--sapButton_BorderWidth) solid $fd-token-border-color;

@include fd-rtl() {
padding-left: 0;
padding-right: $fd-token-padding-horizontal;
}

&__text {
overflow: hidden;
max-width: 100%;
Expand Down Expand Up @@ -99,6 +106,11 @@ $block: #{$fd-namespace}-token;
min-width: $fd-token-compact-close-width;
height: $fd-token-compact-height;
}

@include fd-rtl() {
padding-left: 0;
padding-right: $fd-token-compact-padding-horizontal;
}
}

&--selected {
Expand Down Expand Up @@ -126,6 +138,14 @@ $block: #{$fd-namespace}-token;

&.#{$block}--compact {
padding: 0 $fd-token-compact-padding-horizontal;

@include fd-rtl() {
padding-left: $fd-token-compact-padding-horizontal;
}
}

@include fd-rtl() {
padding-left: $fd-token-padding-horizontal;
}
}
}

0 comments on commit d905104

Please sign in to comment.