Skip to content

Adjust vertical alignment of favorites button in install tab - #11817

Closed
shreyasikhar wants to merge 5 commits into
WordPress:trunkfrom
shreyasikhar:ticket/65231
Closed

shreyasikhar wants to merge 5 commits into
WordPress:trunkfrom
shreyasikhar:ticket/65231

Conversation

@shreyasikhar

@shreyasikhar shreyasikhar commented May 13, 2026 •

Copy link
Copy Markdown

This pull request makes a small CSS adjustment to the vertical alignment of buttons in the plugin favorites tab. The change ensures that buttons within .plugin-install-tab-favorites are aligned to the top instead of the default baseline.

Before After
image image

Ticket: https://core.trac.wordpress.org/ticket/65231

…in install tab

Co-authored-by: Copilot <copilot@github.com>
@github-actions

github-actions Bot commented May 13, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props shreyasikhar26, joedolson, sabernhardt.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@joedolson joedolson 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.

I agree with @sabernhardt's comments about moving this to a different stylesheet. buttons.css should be primarily focused on the baseline styles for buttons, and exceptions belong elsewhere. I think that list-tables.css is the most appropriate place.

I also agree that setting vertical alignment may not be the best solution; it makes more sense to modernize to use flex layout.

@shreyasikhar

Copy link
Copy Markdown
Author

Thanks @joedolson for pointing it out, I have addressed the feedback by updating the code. Also, updated the screenshot in the PR description after the change.

@shreyasikhar
shreyasikhar requested a review from joedolson June 10, 2026 12:26

@sabernhardt sabernhardt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The Get Favorites button has a bottom margin when the screen is narrower than 782 pixels.

Get Favorites button at 600 pixels wide

If the CSS switches to flex, I prefer how #11818 added a class to the paragraph tag and reused two existing rulesets that already set flex display and remove the margin.

@shreyasikhar
shreyasikhar requested a review from sabernhardt June 19, 2026 09:21
@shreyasikhar

Copy link
Copy Markdown
Author

Thanks @sabernhardt, I have made those changes and verified it. Please let me know if any feedback.

@sabernhardt sabernhardt left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Test Report

Patch tested: https://github.com/WordPress/wordpress-develop/pull/11817.diff

Results

  • ✅ The submit button is even with the input when in the same line.
  • ✅ The label is centered vertically with the input.
  • ✅ The input field has space around it (for a focus outline) when the label, input, and submit button are stacked.

Chrome screenshots

Before the patch, the submit button was slightly lower than the input at 1366 pixels wide and again at 782 pixels (though I did not experience the same at widths in between 782 and 1366).

Before patch With patch
1366 pixels wide
Chrome 1366 before
1366 pixels wide
Chrome 1366 after
782 pixels wide
Chrome 782 before
782 pixels wide
Chrome 782 after
520 pixels wide
Chrome 520 before
520 pixels wide
Chrome 520 after

Firefox screenshots

Before patch With patch
800 pixels wide
Firefox 800 before
800 pixels wide
Firefox 800 after
520 pixels wide
Firefox 520 before
520 pixels wide
Firefox 520 after
400 pixels wide
Firefox 400 before
400 pixels wide
Firefox 400 after
320 pixels wide
Firefox 320 before
320 pixels wide
Firefox 320 after

Environment

  • WordPress: 7.1-alpha-62161-src
  • Subdirectory: No
  • PHP: 8.3.14
  • Server: Apache/2.4.62 (Win64) PHP/8.3.14 mod_fcgid/2.3.10-dev
  • Database: mysqli (Server: 9.1.0 / Client: mysqlnd 8.3.14)
  • Browsers: Chrome 150.0.0.0, Firefox 152.0
  • OS: Windows 11
  • Theme: Twenty Twenty 3.1
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.3.0

@joedolson joedolson 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.

LGTM!

@github-actions

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 62697
GitHub commit: 1d693f8

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Jul 12, 2026
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.

3 participants