Repository navigation
highlight only the active document tab, including its top border - #18753
Merged
Merged
Conversation
The pane frame paints a 1px border across the top row of the tab strip, which covered the tab's recolored top border. Draw the indicator as a raised 2px ::before overlay on the selected document tab instead, and keep a 1px inset shadow so the bar flows into the tab's rounded corners.
An inset box-shadow is painted inside the border box while the flat bar fills it, so the two could never meet at the tab's rounded corners. Shape the overlay like the top of the tab instead: same 3px radius, 2px top border, 1px side borders, all in the accent color.
The overlay now starts 1px above the tab with a 3px top edge; its radius grows by 1px so the outer curves stay concentric with the tab's corners.
The tab strip sits 1px above its GWT layout layer, which clips it, so the tab's top row (where the pane frame's border paints) was never visible and the in-flow overlay could not extend upward. Position the overlay with CSS anchor positioning as a fixed box glued to the tab instead; the in-flow version remains as the fallback where anchors are unsupported.
#8ab4f8 is nearly as light as the tab label and read as a highlight rather than an accent; #4f8fea matches the light theme's saturation.
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:14 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 00:14 — with
GitHub Actions
Failure
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 00:18 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:18 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:22 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:22 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:31 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:31 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:31 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 00:31 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:31 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 00:31 — with
GitHub Actions
Inactive
RStudio E2E - all platforms3 test(s) failed
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
…doc-tab-highlight
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 16:28 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 16:28 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 16:35 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 16:35 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 16:39 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 16:39 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 16:48 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 16:48 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:17 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:17 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:19 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 21:19 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:22 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 21:22 — with
GitHub Actions
Failure
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 21:32 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:35 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:35 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:39 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:39 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:43 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 23:43 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:52 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:52 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:52 — with
GitHub Actions
Inactive
kevinushey
had a problem deploying
to
e2e-playwright
September 10, 2026 23:52 — with
GitHub Actions
Failure
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:52 — with
GitHub Actions
Inactive
kevinushey
temporarily deployed
to
e2e-playwright
September 10, 2026 23:52 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Follow-up to #18734. Two changes to the active tab highlighting:
Addresses #18692.
Approach
The pane frame paints a 1px border across the top row of the tab strip, and the strip is deliberately offset 1px above its GWT layout layer, which clips it. So the tab's top row is never visible and nothing drawn in flow inside the tab can reach it. The indicator is therefore drawn "by hand" from the tab's client rectangle using CSS anchor positioning: the selected tab carries an
anchor-name, and its::beforeis aposition: fixedbox anchored to the tab withtop/left/rightfromanchor(). A fixed box escapes every ancestor's overflow clipping, and anchor positioning keeps it attached through resizes, drags and strip scrolling.anchor-scopebinds each overlay to its own tab when several source columns each have a selected tab, andposition-visibility: anchors-visiblehides it if the tab is scrolled out of the strip.The overlay is shaped like the top of the tab (3px top border, 1px side borders, a radius 1px larger than the tab's so the curves stay concentric), so the flat top and the end curves come from a single painted shape with no seam. An inset box-shadow could not do this because it paints inside the border box while the bar fills it.
The anchor rules live in an
@supportsblock, which GWT's legacy CssResource parser passes through verbatim; only@externalclass names are used inside it. Browsers without anchor positioning keep an in-flowposition: absoluteversion of the same shape as a fallback (clipped at the tab's top row, as before).A fixed box is not clipped by the strip, so while the selected tab is only partly in view the bar would spill past the strip edge.
DocTabLayoutPanellistens for scrolling on the strip's layout layer and re-checks after selection and resize; while the tab is partly hidden (past either edge, or under the utility area) it setsdocTabPanelClippedon the panel, and the stylesheet returns the overlay to the in-flow shape so the strip clips it along with the tab. Selecting the tab scrolls it back into view and restores the anchored overlay.The dark theme accent changes from
#8ab4f8, which was nearly as light as the tab label and read as a highlight rather than an accent, to#4586e2. The preference title becomes "Highlight active document tab"; generated accessors andNEWS.mdare updated to match.Automated Tests
highlight_active_tabs.test.tswas rewritten for the new behavior: it reads the::beforeoverlay viagetComputedStyle, checks its shape, that it isposition: fixedand starts 1px above the tab, checks the accent per theme (Modern light, Modern dark, Sky), and asserts pane tabs and minimized strips are never highlighted regardless of the preference. Preference default/Cancel/Apply/reload persistence and stable tab widths under selection are retained.position: absolute, then that selecting the tab restores the anchored overlay.test:desktop-dev, retries disabled).panes.test.ts(37) andactive_tab_restore.test.ts(2) also pass against this build. Playwright typecheck and GWT draft build pass.QA Notes
Open a few documents and switch between them; the selected document tab should show a blue bar along its top edge that covers the pane's grey border line and curves into the tab's corners. Pane tabs should look exactly as they did before #18734. Check Modern light, a dark editor theme, and Sky. Disable "Highlight active document tab" under Global Options > General > Basic > Other and confirm the bar and label emphasis disappear.
With many documents open, drag a tab toward the strip edge so the strip auto-scrolls and the active tab ends up partly hidden; the bar should be cut off with the tab rather than continuing over the overflow buttons or the pane border.