Fix: Buttons output in extra_tablenav are too tall#11224
Fix: Buttons output in extra_tablenav are too tall#11224hbhalodia wants to merge 5 commits intoWordPress:trunkfrom
extra_tablenav are too tall#11224Conversation
|
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe 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
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
mukeshpanchal27
left a comment
There was a problem hiding this comment.
Thanks for the PR! Looks good to me.
joedolson
left a comment
There was a problem hiding this comment.
This fixes the specific named issue, but the same issue exists for other input types inserted in extra_tablenav, as well. E.g, adding a select or an input will also have the extra height.
I think the same logic should be used to ensure that other controls used by core in that context get the compact sizing. The select styling right above can be split between sizing characteristics & positioning characteristics.
I'm not sure that core uses an input in extra_tablenav anywhere, and it's more reasonable that extenders would need to style things not used by core, so it may not be necessary to add that.
Hi @joedolson, Thanks for the suggestion. I have updated to add all the input controls that can be used, but as rightly said, core does not uses all of them and its responsibility of extenders to fix the style if breaks at there end. For now, I have update the PR to use it for all controls. Thanks, |
| .wp-core-ui .tablenav input[type="week"], | ||
| .wp-core-ui .tablenav select { | ||
| padding: 0 12px; | ||
| /* inherits font size 14px */ |
There was a problem hiding this comment.
Can you share why we need this comment?
There was a problem hiding this comment.
It seems unnecessary, given that none of the other related contexts have a similar condition.
There was a problem hiding this comment.
Changing my mind; it's helpful, as it gives context for the comment on the line-height calculation.
It comes from the same block of CSS in forms.css, which this duplicates, but adjusting to the compact sizing.
There was a problem hiding this comment.
Thanks @joedolson @mukeshpanchal27, Yes I have kept it consistent from the original CSS forms.css.
joedolson
left a comment
There was a problem hiding this comment.
I think this is good as is; keeping the comment.
| .wp-core-ui .tablenav input[type="week"], | ||
| .wp-core-ui .tablenav select { | ||
| padding: 0 12px; | ||
| /* inherits font size 14px */ |
There was a problem hiding this comment.
It seems unnecessary, given that none of the other related contexts have a similar condition.
| .wp-core-ui .tablenav input[type="week"], | ||
| .wp-core-ui .tablenav select { | ||
| padding: 0 12px; | ||
| /* inherits font size 14px */ |
There was a problem hiding this comment.
| /* inherits font size 14px */ |
| .wp-core-ui .tablenav input[type="week"], | ||
| .wp-core-ui .tablenav select { | ||
| padding: 0 12px; | ||
| /* inherits font size 14px */ |
There was a problem hiding this comment.
Changing my mind; it's helpful, as it gives context for the comment on the line-height calculation.
It comes from the same block of CSS in forms.css, which this duplicates, but adjusting to the compact sizing.





Trac ticket: https://core.trac.wordpress.org/ticket/64796
.actions).actions)Use of AI Tools
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.