This commit is contained in:
Yosi Levy
2022-04-22 18:27:49 +03:00
committed by GitHub
parent 4f13db3178
commit 3b8b6eb315
16 changed files with 84 additions and 7 deletions

View File

@@ -91,6 +91,19 @@ export class HaTextField extends TextFieldBase {
.mdc-text-field {
overflow: var(--text-field-overflow);
}
:host-context([style*="direction: rtl;"]) .mdc-floating-label {
right: 10px !important;
left: initial !important;
}
:host-context([style*="direction: rtl;"])
.mdc-text-field--with-leading-icon.mdc-text-field--filled
.mdc-floating-label {
max-width: calc(100% - 48px);
right: 48px !important;
left: initial !important;
}
`,
];
}