Skip to content

Commit

Permalink
fix(multiple): fix RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed May 2, 2024
1 parent 7ac3563 commit 9d39876
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/gui/fill/fill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
opacity: .12;
content: '';

[dir="rtl"] & {
[dir='rtl'] & {
border-radius: 0;
border-top-right-radius: var(--mdc-filled-text-field-container-shape);
border-bottom-right-radius: var(--mdc-filled-text-field-container-shape);
Expand Down
12 changes: 11 additions & 1 deletion projects/gui/gui-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
align-items: center;
padding-right: 8px;

[dir='rtl'] & {
padding-right: 0;
padding-left: 8px;
}

gui-field-label {
flex: 1;
overflow: hidden;
Expand Down Expand Up @@ -83,7 +88,7 @@
padding: 0 8px;
border-radius: var(--mdc-filled-text-field-container-shape);

[dir="rtl"] & {
[dir='rtl'] & {
padding: 0 8px;
}
}
Expand Down Expand Up @@ -114,6 +119,11 @@
height: 16px;
background-color: var(--mat-expansion-header-text-color);
content: '';

[dir='rtl'] & {
left: auto;
right: 0;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion projects/gui/input-number/input-number.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.mat-mdc-text-field-wrapper {
padding-right: 0;

[dir="rtl"] & {
[dir='rtl'] & {
padding-left: 0;
}
}
Expand Down
7 changes: 6 additions & 1 deletion projects/gui/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@

.mat-mdc-option {
min-height: var(--mat-option-label-text-line-height);
padding: 0 8px;
padding: 0 8px !important;

.mat-pseudo-checkbox-full {
margin-right: 8px;

[dir='rtl'] & {
margin-right: 0;
margin-left: 8px;
}
}
}

Expand Down
5 changes: 5 additions & 0 deletions projects/gui/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
.mat-mdc-form-field {
margin-left: 6px;

[dir='rtl'] & {
margin-left: 0;
margin-right: 6px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
appearance: none;
Expand Down

0 comments on commit 9d39876

Please sign in to comment.