Skip to content

Commit

Permalink
Fix input group styles on RTL layout
Browse files Browse the repository at this point in the history
  • Loading branch information
DJDavid98 committed Sep 21, 2021
1 parent 4e0baac commit 9c6f05c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
20 changes: 13 additions & 7 deletions src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@

:root {
color-scheme: dark;
}

:root[dir='rtl'] {
.input-group > .input-group-prepend > .btn {
border-radius: 0 $input-border-radius $input-border-radius 0;
}
&[dir='rtl'] {
.input-group > .input-group-prepend > {
.btn,
.input-group-text {
border-radius: 0 $input-border-radius $input-border-radius 0;
}
}

.input-group > .input-group-append > .input-group-text {
border-radius: $input-border-radius 0 0 $input-border-radius;
.input-group > {
.form-control:last-child,
.input-group-append > .input-group-text {
border-radius: $input-border-radius 0 0 $input-border-radius;
}
}
}
}

Expand Down
10 changes: 0 additions & 10 deletions src/scss/modules/TimestampPicker.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,7 @@ $rdt-disabled-color: invert(#999999);
}

:root[dir='rtl'] {
.date-input-group {
flex-direction: row-reverse;
}

.datepicker .form-label {
text-align: right;
}
}

:root[dir='rtl'] {
.date-input-group {
flex-direction: row-reverse;
}
}

0 comments on commit 9c6f05c

Please sign in to comment.