You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 BugScreen.Recording.2024-06-11.at.3.33.56.PM.mov
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.
Scroll down the page.
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
The text was updated successfully, but these errors were encountered:
lazirpascual
changed the title
Offset prop in Sticky component does not work with "oneThird" Layout.ItemOffset prop in Sticky component does not work with oneThird Layout.Section
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.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
offset
prop inside this section. The other Layout.Section should be long enough to scroll and observe the sticky section.Are you using React components?
None
Polaris version number
No response
Browser
No response
Device
No response
The text was updated successfully, but these errors were encountered: