From b609890f28180338788832854edb339a3de48785 Mon Sep 17 00:00:00 2001 From: Yosi Levy <37745463+yosilevy@users.noreply.github.com> Date: Mon, 6 Jul 2020 17:29:18 +0300 Subject: [PATCH] Update ha-formfield.ts --- src/components/ha-formfield.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ha-formfield.ts b/src/components/ha-formfield.ts index 211ee8d0b0..6d0a5b8ba0 100644 --- a/src/components/ha-formfield.ts +++ b/src/components/ha-formfield.ts @@ -14,7 +14,7 @@ export class HaFormfield extends MwcFormfield { return [ style, css` - ::slotted(ha-switch) { + :host(:not([alignEnd])) ::slotted(ha-switch) { margin-right: 10px; } :host([dir="rtl"]:not([alignEnd])) ::slotted(ha-switch) {