From 0f418b48775226dd7b6143cd72c0faba0e2f86d7 Mon Sep 17 00:00:00 2001 From: enterayush Date: Wed, 7 Jan 2026 01:12:49 +0530 Subject: [PATCH] a11y: show toolbar tooltips on keyboard focus (Fixes #19156) --- web/viewer.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web/viewer.css b/web/viewer.css index 17dd46b38fdd7..b4f402384123b 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -843,6 +843,22 @@ dialog :link { height: auto; } } + /* Show tooltips for keyboard users */ + &:focus::after, + &:hover::after { + content: attr(title); + position: absolute; + top: 100%; + left: 50%; + transform: translateX(-50%); + white-space: nowrap; + background: rgb(0 0 0 / 0.8); + color: #fff; + padding: 4px 6px; + border-radius: 4px; + font-size: 12px; + pointer-events: none; + } } .toolbarButtonWithContainer {