Skip to content

Commit

Permalink
The labeled field's label should be positioned correctly in RTL UI di…
Browse files Browse the repository at this point in the history
…rection.
  • Loading branch information
oleq committed Oct 9, 2023
1 parent 1d4012e commit c7c383f
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@

@mixin ck-dir ltr {
left: 0px;
transform-origin: 0 0;
/* By default, display the label scaled down above the field. */
transform: translate(var(--ck-spacing-medium), -6px) scale(.75);
}

@mixin ck-dir rtl {
right: 0px;
transform-origin: 100% 0;
transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);
}

pointer-events: none;
transform-origin: 0 0;

/* By default, display the label scaled down above the field. */
transform: translate(var(--ck-spacing-medium), -6px) scale(.75);

background: var(--ck-color-labeled-field-label-background);
padding: 0 calc(.5 * var(--ck-font-size-tiny));
Expand Down

0 comments on commit c7c383f

Please sign in to comment.