From 394a1be3228abad6202d8c86c3f33e33714a6528 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 6 Jan 2026 23:08:22 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(frontend)=20add=20sr-only=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add a utility class to hide content visually while keeping it available to sr. Signed-off-by: Cyril --- src/frontend/src/styles/index.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/frontend/src/styles/index.css b/src/frontend/src/styles/index.css index 5d1ebb66..6b9a5d72 100644 --- a/src/frontend/src/styles/index.css +++ b/src/frontend/src/styles/index.css @@ -7,6 +7,18 @@ body, height: 100%; } +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + * { outline: 2px solid transparent; }