Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile IndexFilters rendering as sticky when the element has not been scrolled to yet #12442

Open
benwolfram opened this issue Jul 23, 2024 · 0 comments
Labels
Bug Something is broken and not working as intended in the system. untriaged

Comments

@benwolfram
Copy link
Contributor

benwolfram commented Jul 23, 2024

Summary

I think I am noticing an issue with IndexFilters for IndexTable on mobile.

I came across it on a new table I am implementing, but also could reproduce it by adding a large green element to the products list too.

Basically, when IndexFilters is initialized off screen (ie. there are other longer elements before of it), it will initialize the IndexFilters as sticky -- even thought the IndexTable is not in view even yet.

It seems a similar issues happen in this case for the sticky "loading" state for IndexTable.

https://screenshot.click/23-34-k0h4y-dr3mq.mp4

Expected behavior

IndexFilters sticky state should not be visible unless the scroll position is greater than the IndexFilters' y position.

Actual behavior

https://screenshot.click/23-34-k0h4y-dr3mq.mp4

Steps to reproduce

  1. Add an IndexTable + IndexFilters to a page
  2. Ensure there is a long element before IndexTable, so it will not be rendered by default in the mobile view
  3. Ensure you are viewing the page as mobile

Are you using React components?

Yes

Polaris version number

No response

Browser

No response

Device

No response

@benwolfram benwolfram added Bug Something is broken and not working as intended in the system. untriaged labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system. untriaged
Projects
None yet
Development

No branches or pull requests

1 participant