Skip to content

Restore z-index on #test-body-mobile to fix header dropdown stacking#12275

Merged
cdrini merged 2 commits intointernetarchive:masterfrom
lokesh:fix-sticky-z-index
Apr 3, 2026
Merged

Restore z-index on #test-body-mobile to fix header dropdown stacking#12275
cdrini merged 2 commits intointernetarchive:masterfrom
lokesh:fix-sticky-z-index

Conversation

@lokesh
Copy link
Copy Markdown
Collaborator

@lokesh lokesh commented Apr 3, 2026

The z-index was removed in #12126 to allow the new ol-popovers that use fixed position to escape the stacking context, but this introduced a bug that caused header menus and search autocomplete to render behind the sticky nav-bar.

This brings back those z-index values and fixes the stacking bug in master. As for the popover issue, I'll revisit it after some more evaluation of our z-index usage in the codebase.

Testing

Visit book page and click the Browse menu option in the header and open up the Search autocomplete by typing in a query.

Screenshot

Before

image

After

Screenshot 2026-04-02 at 8 58 35 PM Screenshot 2026-04-02 at 8 58 40 PM Screenshot 2026-04-02 at 8 58 53 PM

Stakeholders

@mekarpeles @cdrini

The z-index was removed in internetarchive#12126 to allow fixed-position popovers to
escape the stacking context, but this caused header menus and search
autocomplete to render behind the sticky nav-bar.
@lokesh lokesh requested a review from mekarpeles April 3, 2026 04:18
@lokesh lokesh marked this pull request as ready for review April 3, 2026 04:18
@lokesh lokesh added the Priority: 0 Fix now: Issue prevents users from using the site or active data corruption. [managed] label Apr 3, 2026
@cdrini cdrini self-assigned this Apr 3, 2026
Copy link
Copy Markdown
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Tested and worked on testing

@cdrini cdrini merged commit 47ac623 into internetarchive:master Apr 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: 0 Fix now: Issue prevents users from using the site or active data corruption. [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants