ucsc / ucsc-2022

Official WordPress theme for UC Santa Cruz
6 stars 0 forks source link

[UCSC-130] Prevent sticky header from covering scroll targets #264

Closed bjcooper closed 10 months ago

bjcooper commented 10 months ago

What does this do/fix?

Adds a scroll margin based on the sticky header height so scroll targets/anchors in other regions aren't behind the sticky nav after being scrolled to.

Note that this and everything else to do with the sticky nav should be tested with a non-admin or unauthenticated session, as the WP admin bar screws with all of the height and positioning calculations.

QA

Links to relevant issues

bjcooper commented 10 months ago

bump @Vinsanity