Don't make the header sticky by default #524
Description
openedon Sep 27, 2023
Description
it's a known fact that fixed / sticky headers or top bars may introduce usability and accessibility issues. While testing the footnotes block in the context of WordPress/gutenberg#54843 I noticed that the sticky header in the theme makes the user experience less than ideal.
Specifically, following a footnote link and clicking the 'jump back' link in the footnote does make the page scroll as expected but the page frgment that should scroll into view is always hidden behind the fixed header.
This is a very confusing experience for all users (it happens also when clicknw with mouse) and even more confusing for keyboard users.
Since the sticky header height can't be predicted, as it actually depends on the amount of links in the navigation, the only option I can think of is to change the default setting. The header should not be sticky by default. That would provide users with a default user experience that is less than ideal.
Step-by-step reproduction instructions
Expected behavior
Focused links and controls to be visible.
Screenshots
Animated GIF to illustrate the footnotes behavior:
Environment info
Additional context