Skip to content

Conversation

@abose
Copy link
Member

@abose abose commented Jan 8, 2026

Previously, when a CSS selector matched multiple elements in Live Preview, we always picked the first match. That often caused a page jump (e.g., you’re editing near page 5, but the first match is on page 1), making CSS edits frustrating and sometimes impossible to do on the visible element.

Now, when a selector has multiple matches, we prefer the element you’re editing (or the closest matching parent/nearby match) instead of the first node. This keeps the selection local to what’s on screen, so inline CSS editing (and other CSS edits) usually won’t yank you to a different part of the page.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

@abose abose merged commit 1bf3852 into main Jan 8, 2026
18 of 21 checks passed
@abose abose deleted the x branch January 8, 2026 11:31
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