Skip to content

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.

@changeset-bot
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