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

Offset prop in Sticky component does not work with oneThird Layout.Section #12234

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

Comments

@lazirpascual
Copy link

lazirpascual commented Jun 11, 2024

Summary

When a Sticky Component is rendered within a Layout.Section with a variant of oneThird, the offset prop of the Sticky component does not work, and no vertical spacing is added.

image

Expected behavior

The Sticky component renders vertical spacing from the top of the scrollable container when offset prop is true.

Actual behavior

The Sticky component does not render vertical spacing from the top of the scrollable container regardless of whether the offset prop is true.

Sticky and Layout Offset Bug
Screen.Recording.2024-06-11.at.3.33.56.PM.mov

Steps to reproduce

Link to sandbox

  1. Create a page that contains two Layout.Section, one of them with a variant of "oneThird". There should be a Sticky component with an offset prop inside this section. The other Layout.Section should be long enough to scroll and observe the sticky section.
  2. Scroll down the page.
  3. Observe that there is no vertical spacing from the top of the scrollable container.

Are you using React components?

None

Polaris version number

No response

Browser

No response

Device

No response

@lazirpascual lazirpascual added Bug Something is broken and not working as intended in the system. untriaged labels Jun 11, 2024
@lazirpascual lazirpascual changed the title Offset prop in Sticky component does not work with "oneThird" Layout.Item Offset prop in Sticky component does not work with oneThird Layout.Section Jun 11, 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