Skip to content

Align Windows Packages toolbar labels and search fields - #19163

Merged
kevinushey merged 3 commits into
mainfrom
codex/windows-toolbar-alignment
Oct 21, 2026
Merged

kevinushey merged 3 commits into
mainfrom
codex/windows-toolbar-alignment

Conversation

@kevinushey

@kevinushey kevinushey commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Addresses #19165.

Intent

Align the Packages pane's text-only Help and repository actions with nearby icons, and improve the vertical alignment of search fields on Windows.

Approach

Add a class to those two Packages toolbar actions and move their labels up two pixels on Windows. Move shared search widgets up one pixel on Windows.

Automated Tests

GWT draft compilation passes. Browser layout checks verified the two-pixel label and one-pixel search shifts. No new behavioral tests were added for these visual offsets.

QA Notes

Check Packages with renv active and its repository selector visible, plus search fields in other panes, at common Windows display scales. Confirm non-Windows layouts are unchanged.

Documentation

Added a NEWS.md entry.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
3721 0 185 4
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 9 0
✅ desktop-linux 972 0 42 1
✅ desktop-macos 978 0 37 1
✅ desktop-windows 816 0 35 1
✅ server-linux 927 0 44 1
✅ setup 26 0 18 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit c9d2903723dd056bc5046933e37718f723905920 - Run #1593

@kevinushey
kevinushey merged commit 7722340 into main Oct 21, 2026
1 of 5 checks passed
@kevinushey
kevinushey deleted the codex/windows-toolbar-alignment branch October 21, 2026 20:44
gtritchie added a commit that referenced this pull request Dec 3, 2026
* Keep search inputs' 24px spacing under the Windows lift

Windows lifts search boxes 1px (#19163), which put each input's center
11.5px below the toolbar row above instead of 12.5px. Where a button sits
directly above, as Environment's List/Grid view menu does, axe-core's
target-size rule reported 23px of clear space instead of 24px.

On Windows the inputs now reach 2px lower, over the box's bottom gap and
border, and are padded by the same amount, so they are 17px tall instead
of 15px with their centers back 12.5px down and their text unmoved.

Addresses #19786.

* Keep focused Windows search inputs full width

The first focus pads a search input across its box (fixFocusRectangle),
which assumes content-box sizing. Under the border-box sizing added for
the 24px spacing, that padding came out of the input's width: a focused
Environment search input was 72px wide in a 121px box. Extend the input
with bottom padding alone instead, which keeps it 17px tall, and test
the focused width.

Run the Windows test's axe scan through AxeBuilder's legacy mode instead
of injecting axe-core by hand.

Addresses #19786.

* Keep Windows search suggestions at their usual offset

SuggestBox opens its suggestions at the input's bottom edge, which the
Windows search inputs' new 2px bottom padding moved 2px lower: the
Go to file/function list opened 3px below the box instead of 1px.
Give search widgets' suggestion popups a class and, on Windows, a 1px
top margin in place of the 3px all suggestion popups have.

Addresses #19786.

* Check both search boxes in the Windows target-size test

Scan and check the focused width of the main toolbar's search box as well
as Environment's, assert bounding boxes before reading them, and blur the
input afterwards so later tests don't start with focus in a search box.

Addresses #19786.

* Test where Windows search suggestions open

Open a file with a known function, type its name into Go to file/function,
and expect the suggestion popup 1px below the search box. With the popup's
old 3px margin it opens 3.3px below at 150% scaling.

Addresses #19786.

* Tighten the Windows search box tests

Move the suggestion popup test and its sandbox into a nested describe, so
the Server-only tests in the file no longer run the sandbox setup. Accept
a popup gap between 0 and 2px, which still fails the old 3px, instead of
1px within 0.5px. Add Help's Find in Topic, a FindTextBox, to the Windows
spacing test.

Addresses #19786.

* Describe the search suggestion popup's Windows offset

Say what SearchSuggestionDisplay is for now that it also gives the popup
its Windows class, and note in themeStyles.css that a list flipped above
the box sits 2px higher.

Addresses #19786.

* Check Windows search boxes' clearance from the toolbar above

axe only fails a search input when a button happens to sit above it, which
in the default layout Find in Topic doesn't have. Also require each input's
center to be at least 12px below its toolbar's top edge; without the
padding it is 11.5px. Check Find in Topic after activating Help, which
may share a tabset with Environment.

Addresses #19786.
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.

1 participant