Skip to content

19.0.1: space tour popover buttons with flex gap instead of a sibling selector - #165

Merged
boehlerlukas merged 2 commits into
masterfrom
claude/tour-popover-flex-gap
Oct 1, 2026
Merged

boehlerlukas merged 2 commits into
masterfrom
claude/tour-popover-flex-gap

Conversation

@boehlerlukas

@boehlerlukas boehlerlukas commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #164.

The injected .gleap-tour-popover-navigation-btns button + button { margin-left: 4px } rule has a bare button subject, so Chrome restyles sibling subtrees whenever a node is inserted anywhere in the host page — the reporter measured ~2,000 extra elements restyled per interaction on a large app.

The container is already display: flex, so this adds gap: 4px there and drops the sibling rule. Same layout; additionally, when the Previous button is hidden (display: none), Next no longer keeps a stray 4px left margin. It was the only sibling combinator in the injected styles.

Releases as 19.0.1: version bump, CHANGELOG entry and rebuilt build/ + published/. npm test passes (781 tests).

🤖 Generated with Claude Code

boehlerlukas and others added 2 commits October 1, 2026 17:07
…elector

The injected `.gleap-tour-popover-navigation-btns button + button` rule has
a bare `button` subject, so Chrome restyles sibling subtrees on DOM inserts
anywhere in the host page. `gap: 4px` on the existing flex container gives
the same spacing (and none when the Previous button is hidden).

Fixes #164

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boehlerlukas boehlerlukas changed the title perf: space tour popover buttons with flex gap instead of a sibling selector 19.0.1: space tour popover buttons with flex gap instead of a sibling selector Oct 1, 2026
@boehlerlukas
boehlerlukas merged commit 190e944 into master Oct 1, 2026
1 check passed
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.

Sibling selector in injected styles causes large style recalculations

1 participant