Repository navigation
fix(lab): MobilePowerSearch's sticky sheet header stays above the rows scrolling under it - #8005
Merged
Merged
Conversation
…s scrolling under it Each sheet's sticky header (title, Back, the field search) had z-index 0 so it would not cover the sheet's grab handle (z-index 1). The List rows below it are position: relative and come later in the tree, so when the list scrolled they painted over the header: the first row's label showed through the search field. The sheet content wrapper now isolates its own stacking context, and the sticky header and footer sit at z-index 1 inside it. Rows pass under the header, and the grab handle, outside the wrapper, still paints above.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewModified ComponentsMobilePowerSearch (@astryxdesign/lab) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
Contributor
There was a problem hiding this comment.
Looks good to merge. Isolating the sheet content and giving the sticky header and footer a local z-index: 1 keeps the list rows under the header while the BottomSheet grab handle stays on top, which follows the repository's local-stacking spec (AST-027). Rows now pass under the header in both the Add filter sheet and the value step, and the new test fails against the previous values. No changes are needed.
[Automated review]
imdreamrunner
enabled auto-merge (squash)
October 23, 2026 22:30
github-actions
Bot
deleted the
fix/lab-mobile-powersearch-sticky-header
branch
October 24, 2026 06:20
3 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User impact
On a phone, scrolling any MobilePowerSearch sheet a little (Add filter is where it shows first) paints the list rows over the sticky header: the first row's label appears on top of the "Search filters…" field, and the field reads as broken. Every sheet with a sticky header (Filters, Add filter, the value step) is affected.
Problem and solution fit
z-index: 0so it would not cover the BottomSheet grab handle, which sits atz-index: 1on the panel. The List rows areposition: relativewithz-index: autoand come after the header in the tree, so they are painted after it, on top.The fix scopes the layering to the sheet's content: the wrapper that holds the header, body and footer gets
isolation: isolate, and the sticky header and footer getz-index: 1inside it. Rows scroll under the header; the grab handle, which is outside that wrapper, still paints above it.Expected behavior and authority
A sticky header is drawn above the content scrolling under it, and the BottomSheet grab handle stays visible (
component:BottomSheetanatomy: the handle is part of the panel chrome).Smallest restoration
Three style values in
MobilePowerSearch.tsx(isolationon the sheet content wrapper,z-index: 1on the sticky header and footer) and their comments. No API, prop, or visual change other than the overlap.Evidence
z-indexis 1 and the content wrapper is isolated (new test); rows pass under it.MobilePowerSearch.test.tsx› "keeps the sticky header above the rows that scroll under it, without covering the grab handle" — fails with the previousz-index: 0and no isolation, passes now.Scope
Testing
pnpm exec vitest run packages/lab/src/MobilePowerSearch packages/lab/src/MobileTokenizer: 92 passed.@astryxdesign/labis private, so no changeset.