Skip to content

GAUD-9165 - Example of how we could apply fix to our sticky components#6911

Closed
svanherk wants to merge 6 commits into
mainfrom
GAUD-9165-Example-of-sticky-fix
Closed

GAUD-9165 - Example of how we could apply fix to our sticky components#6911
svanherk wants to merge 6 commits into
mainfrom
GAUD-9165-Example-of-sticky-fix

Conversation

@svanherk
Copy link
Copy Markdown
Contributor

@svanherk svanherk commented May 4, 2026

Example of what we need to do to fix all our sticky components with immersive-nav in a world with body scroll. I haven't tested all this, just quickly applied it to the components in the demo pages to show how it can fix it. It's not perfect, because if these things were nested in another scrolling component, the consumer would need to know to set this variable back to --d2l-sticky-offset at that level.

But I haven't found a different way to cleanly do this with body scroll. Putting this up so others can experiment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know why collapsible-panel is set up this way, it's confusing. I think this is a good fix regardless, but maybe the vdiffs will disagree.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like mostly very subtle anti-aliasing changes -- but there are some issues with "inline" panels that are focused.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah not as bad as I thought, if we go this route we'll need to dig more. This change would align collapsible-panel to work how the list controls work - applying certain styles when it sticks, not suddenly deciding to make it sticky.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-6911/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

Base automatically changed from GAUD-9165-Flesh-out-demo-page to main May 6, 2026 18:26
@svanherk
Copy link
Copy Markdown
Contributor Author

svanherk commented May 6, 2026

Closing in favour of #6942

@svanherk svanherk closed this May 6, 2026
@svanherk svanherk deleted the GAUD-9165-Example-of-sticky-fix branch May 6, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants