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

fix: workaround LiveRegion layout issues #1534

Merged
merged 2 commits into from
Nov 23, 2024
Merged

Conversation

duvallj
Copy link
Contributor

@duvallj duvallj commented Nov 20, 2024

It turns out, under some sufficiently complex CSS conditions, the visually hidden <LiveRegion> component can cause layout issues. See https://static.duvallj.pw/2024-11-19/scrollHeightBug/index.html for a minimal reproduction (Chrome and Firefox; behavior is correct in Safari), and https://blog.duvallj.pw/posts/2024-11-19-chrome-heisenbug-uncovered.html for an explanation of what's wrong about this example.

TL;DR sometimes this position: fixed; element will overflow container divs in a strange + unexpected + buggy way. Setting explicit top/left properties causes the layout to be calculated correctly again.

Copy link

changeset-bot bot commented Nov 20, 2024

🦋 Changeset detected

Latest commit: fd5b2e6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@dnd-kit/accessibility Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@clauderic clauderic merged commit 93602df into clauderic:master Nov 23, 2024
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