From 94068977f5583b0b8dd8b4c324f496ee5b490e0a Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:06:05 +0100 Subject: [PATCH] GrafanaUI: Improve Switch cursor focus on screen readers (#93100) --- packages/grafana-ui/src/components/Switch/Switch.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Switch/Switch.tsx b/packages/grafana-ui/src/components/Switch/Switch.tsx index 53414c56aa6..269463c2126 100644 --- a/packages/grafana-ui/src/components/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Switch/Switch.tsx @@ -85,8 +85,9 @@ const getSwitchStyles = (theme: GrafanaTheme2, transparent?: boolean) => ({ lineHeight: 1, input: { + height: '100%', + width: '100% !important', opacity: 0, - left: '-100vw', zIndex: -1000, position: 'absolute',