diff --git a/src/components/ha-formfield.ts b/src/components/ha-formfield.ts
index 241f2ec276..8a52c5ba5a 100644
--- a/src/components/ha-formfield.ts
+++ b/src/components/ha-formfield.ts
@@ -28,10 +28,15 @@ export class HaFormfield extends FormfieldBase {
css`
:host(:not([alignEnd])) ::slotted(ha-switch) {
margin-right: 10px;
+ margin-inline-end: 10px;
+ margin-inline-start: inline;
}
- :host([dir="rtl"]:not([alignEnd])) ::slotted(ha-switch) {
- margin-left: 10px;
- margin-right: auto;
+ .mdc-form-field > label {
+ direction: var(--direction);
+ margin-inline-start: 0;
+ margin-inline-end: auto;
+ padding-inline-start: 4px;
+ padding-inline-end: 0;
}
`,
];
diff --git a/src/components/ha-selector/ha-selector-select.ts b/src/components/ha-selector/ha-selector-select.ts
index 85eaefd610..71869b0e68 100644
--- a/src/components/ha-selector/ha-selector-select.ts
+++ b/src/components/ha-selector/ha-selector-select.ts
@@ -1,4 +1,3 @@
-import "@material/mwc-formfield/mwc-formfield";
import "@material/mwc-list/mwc-list-item";
import { mdiClose } from "@mdi/js";
import { css, html, LitElement } from "lit";
@@ -47,14 +46,14 @@ export class HaSelectSelector extends LitElement {
${this.label}
${options.map(
(item: SelectOption) => html`
-
+
-
+
`
)}
diff --git a/src/panels/config/person/dialog-person-detail.ts b/src/panels/config/person/dialog-person-detail.ts
index 9406d469f8..16fd99416c 100644
--- a/src/panels/config/person/dialog-person-detail.ts
+++ b/src/panels/config/person/dialog-person-detail.ts
@@ -2,7 +2,6 @@ import "@material/mwc-button";
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
-import { computeRTLDirection } from "../../../common/util/compute_rtl";
import "../../../components/entity/ha-entities-picker";
import { createCloseHeading } from "../../../components/ha-dialog";
import "../../../components/ha-formfield";
@@ -159,7 +158,6 @@ class DialogPersonDetail extends LitElement {
.label=${this.hass.localize(
"ui.panel.config.person.detail.local_only"
)}
- .dir=${computeRTLDirection(this.hass)}
>