Accessibility · SU-145
A sticky bar never hides the focused element
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Focused “Notifications”
100% under the banner
-
Focused “Notifications”
fully visible
Profile
Security
Billing
Notifications
Profile
Security
Billing
Notifications
Danger zone
-
scroll-padding-bottom
0px
-
scroll-padding-bottom
96px (the banner’s height)
What changes
- Bad
- The focused “Notifications” row is scrolled in exactly where the
96pxcookie banner sits, so it is fully covered.audit.js: SU-145 fail: focused element is fully covered by div.banner (96px) once scrolled into view - Good
scroll-padding-bottom: 96pxmatches the banner, so focus scrolls the row clear of it and it stays fully visible.
The rules
-
SU-145
Focus stays visible, and a covered ring doesn't count. Sticky headers, footers, cookie bars and chat widgets never fully hide the focused element.