Skip to content

fix(splitter): keep the focused bar above positioned pane content - #2567

Merged
rkaraivanov merged 1 commit into
masterfrom
rkaraivanov/z-index-containment-guard
Nov 2, 2026
Merged

rkaraivanov merged 1 commit into
masterfrom
rkaraivanov/z-index-containment-guard

Conversation

@rkaraivanov

Copy link
Copy Markdown
Member

Description

  • Give each pane its own stacking context and drop the z-index of the focused bar from 99 to 1. Slotted content with any z-index now stays under the focus ring. Before, content with a z-index of 99 or more could cover it.
  • Add a spec that mounts every defined tag in each theme and checks that the parts with a z-index stay under an earlier page layer.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Checklist

  • My code follows the project's coding standards
  • I have tested my changes locally
  • I have updated documentation if needed
  • I have added a CHANGELOG.md entry under [Unreleased]

- Give each pane its own stacking context and drop the z-index of the
  focused bar from 99 to 1. Slotted content with any z-index now stays
  under the focus ring. Before, content with a z-index of 99 or more
  could cover it.
- Add a spec that mounts every defined tag in each theme and checks that
  the parts with a z-index stay under an earlier page layer.
Copilot AI balanced review requested due to automatic review settings November 2, 2026 17:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the splitter focus-ring stacking change.

No open issues 🎉

What changed in this PR

This PR fixes splitter focus-ring visibility by containing pane content in separate stacking contexts, keeping high-z-index content below the focused bar.

Changes:

  • Isolate each pane and reduce the focused bar’s z-index from 99 to 1.
  • Add a splitter regression test and cross-component, cross-theme stacking-containment tests.
  • Update the splitter specification and changelog to document the behavior.
File Description
src/​components/​z-index-containment.spec.ts Adds page-layer containment checks across defined tags and themes.
src/​components/​splitter/​themes/​splitter.base.scss Gives each pane its own stacking context.
src/​components/​splitter/​themes/​shared/​splitter.common.scss Lowers the focused bar’s z-index to 1.
src/​components/​splitter/​splitter.spec.ts Tests the focused bar above fixed, high-z-index pane content.
src/​components/​splitter/​spec.md Documents focus-ring containment and the regression scenario.
CHANGELOG.md Records the splitter stacking fix.

Review effort: Balanced

@rkaraivanov
rkaraivanov merged commit b4d5600 into master Nov 2, 2026
8 checks passed
@rkaraivanov
rkaraivanov deleted the rkaraivanov/z-index-containment-guard branch November 2, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants