Skip to content

Admin: Standardize mobile viewport heights for interactive elements on list table pages#11461

Open
SainathPoojary wants to merge 5 commits intoWordPress:trunkfrom
SainathPoojary:fix/64999
Open

Admin: Standardize mobile viewport heights for interactive elements on list table pages#11461
SainathPoojary wants to merge 5 commits intoWordPress:trunkfrom
SainathPoojary:fix/64999

Conversation

@SainathPoojary
Copy link
Copy Markdown

@SainathPoojary SainathPoojary commented Apr 7, 2026

Fixes inconsistent heights on interactive elements in the admin mobile viewport (≤782px) on list table pages (Posts, Pages, etc.).

2026-04-08.13-45-37.mp4

Trac ticket: #64999

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

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.

@SainathPoojary SainathPoojary marked this pull request as ready for review April 8, 2026 08:17
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

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 sainathpoojary, wildworks.

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

Comment on lines +4287 to +4296
#screen-meta-links .show-settings {
box-sizing: border-box;
min-height: 40px;
line-height: 2.71428571;
}

#screen-meta-links .show-settings:after {
font: normal 20px/1.9 dashicons;
}

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.

Suggested change
#screen-meta-links .show-settings {
box-sizing: border-box;
min-height: 40px;
line-height: 2.71428571;
}
#screen-meta-links .show-settings:after {
font: normal 20px/1.9 dashicons;
}

I think we should use the button-compact class instead of hardcoding override styles in the mobile layout. This button is 32px in size and will automatically scale to 40px in the mobile layout.

.wp-core-ui .button.button-compact,

Therefore, simply adding button-compact to the following locations should resolve the issue.

<button type="button" id="show-settings-link" class="button show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button>

<button type="button" id="contextual-help-link" class="button show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></button>

Comment on lines +1814 to +1818
p.search-box .button {
min-height: 40px;
line-height: 2.71428571; /* 38px - matches default mobile button */
padding: 0 14px;
}
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.

We should be able to use the button-compact class instead.

Additionally, the height of the text field needs to be changed from 32px to 40px.

Image

Comment on lines +1782 to +1788
#doaction,
#doaction2,
#post-query-submit {
min-height: 40px;
line-height: 2.71428571;
padding: 0 14px;
}
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.

To avoid such overwrites, I believe we should remove min-height, line-height, and padding from these buttons in the first place:

#doaction,
#doaction2,
#post-query-submit {
margin: 0 8px 0 0;
min-height: 32px;
line-height: 2.30769231; /* 30px for 32px height with 13px font */
padding: 0 12px;
}

Instead, we should be able to use button-compact class.

Comment on lines +1777 to +1780
.wp-core-ui .tablenav select {
line-height: 2.375;
font-size: 16px;
}
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.

Are these styles really necessary?

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.

2 participants