From e5f448819a012e51af16fd7d9fdb268ccc2b81b5 Mon Sep 17 00:00:00 2001 From: Pavel Kornev Date: Thu, 8 Oct 2020 12:53:46 +0200 Subject: [PATCH] fix(ui5-switch): fix focus border position (#2319) This change fixes the wrong focus border position.It's 2px more from the right side because the border itself is not considered. --- packages/main/src/themes/Switch.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/main/src/themes/Switch.css b/packages/main/src/themes/Switch.css index 2b6585bc6e10..7bb6d57c96b4 100644 --- a/packages/main/src/themes/Switch.css +++ b/packages/main/src/themes/Switch.css @@ -101,7 +101,8 @@ left: -var(--_ui5_switch_outline); top: 0; bottom: 0; - width: 100%; + left: 0; + right: 0; border: var(--_ui5_switch_outline) dotted var(--sapContent_FocusColor); pointer-events: none; }