Repository navigation
Align Windows Packages toolbar labels and search fields - #19163
Merged
Merged
Conversation
RStudio E2E - all platformsAll tests passed!
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 |
This was referenced Dec 1, 2026
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.
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.
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.mdentry.