Find Keyboard Focus Hidden Under a Sticky Header

Tab to a link immediately below the sticky header and then navigate backward with Shift+Tab. If the focus is covered, adjust the scroll offset or the sticky layout so that the browser can bring the active control into view. Test keyboard navigation itself because a working anchor jump only checks one scrolling path.

1. Reproduce the overlap away from the top

Start with the header already stuck at the top. Move focus to a link near the bottom of the viewport, then reverse direction until the browser scrolls upward. Compare the focused control with the header’s bottom edge. Sticky chat launchers and cookie banners can create the same problem near the lower edge. Keep the settings or banner state you used in the bug report.

2. Make the scrollable region leave usable room

If you own the page CSS, try a block start scroll padding on the element that actually scrolls and match it to the header space. A nested panel may be its own scrolling container. Making the global viewport reserve room will not necessarily change focus behavior inside that panel. A single offset can also become too small when the header wraps at narrow widths. If offset styling is insufficient, shrink or unstick the header at the affected viewport.

3. Verify actual visibility in both directions

Repeat the sequence at a desktop width and an enlarged, narrow layout. Move forward and backward across the first visible control and across any opened cookie banner. WCAG 2.2 AA sets a minimum condition that the focused component is not entirely hidden by author-created content. Aim to show the full control and its focus indicator when space permits. Record the viewport, direction and focused element so another tester can repeat the check.

Sources

댓글

이 블로그의 인기 게시물

소니 A6000 Wi-Fi 전송 (컴퓨터로 보내기)

SVN 서버 설치 및 웹 접속 설정-Ubuntu 14.04

VirtualBox(VM) 화면 크기 조절