Fix RTL issue on date selector in lower resolutions & color slider (#13326)

This commit is contained in:
Yosi Levy
2022-08-29 21:23:06 +03:00
committed by GitHub
parent 2e46b04204
commit e74fd5fcdc
3 changed files with 6 additions and 2 deletions

View File

@@ -221,6 +221,10 @@ class DateRangePickerElement extends WrappedElement {
.calendar-table {
padding: 0 !important;
}
.daterangepicker.ltr {
direction: ltr;
text-align: left;
}
`;
const shadowRoot = this.shadowRoot!;
shadowRoot.appendChild(style);

View File

@@ -47,7 +47,7 @@ export class HaColorTempSelector extends LitElement {
static styles = css`
ha-labeled-slider {
--ha-slider-background: -webkit-linear-gradient(
right,
var(--float-end),
rgb(255, 160, 0) 0%,
white 50%,
rgb(166, 209, 255) 100%

View File

@@ -579,7 +579,7 @@ class MoreInfoLight extends LitElement {
.color_temp {
--ha-slider-background: -webkit-linear-gradient(
right,
var(--float-end),
rgb(255, 160, 0) 0%,
white 50%,
rgb(166, 209, 255) 100%