Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#61659 new enhancement

Add New links at the top of some pages become huge on smaller screens

Reported by: luan-ramos's profile Luan Ramos Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: needs-patch
Focuses: ui, css Cc:

Description

When I access some tabs in WordPress, the buttons at the top appear very large. This "giant" appearance is significantly breaking the layout.

Attachments (2)

Screenshot 2024-07-16 at 12.57.11.png (31.7 KB) - added by Luan Ramos 6 months ago.
When I access some tabs in WordPress, the buttons at the top appear very large. This "giant" appearance is significantly breaking the layout.
add-new-theme-WP6.6.png (12.1 KB) - added by sabernhardt 6 months ago.
Add New Theme link with search form below it, in WordPress 6.6

Download all attachments as: .zip

Change History (4)

@Luan Ramos
6 months ago

When I access some tabs in WordPress, the buttons at the top appear very large. This "giant" appearance is significantly breaking the layout.

#1 @joedolson
6 months ago

  • Focuses ui added
  • Keywords needs-patch added

Related to #40331. Not technically a change in button style, but inheriting the standard button sizing in smaller view ports looks strange in this context.

@sabernhardt
6 months ago

Add New Theme link with search form below it, in WordPress 6.6

#2 @sabernhardt
6 months ago

  • Component changed from General to Administration
  • Summary changed from The buttons in the heading of some pages are becoming huge. to Add New links at the top of some pages become huge on smaller screens
  • Type changed from defect (bug) to enhancement

I think the link's height looked more broken before #40331 and WordPress 6.6, so I reclassified this as an enhancement.

[26134] mentions size adjustments "for better touch usability." The current 52.15 pixels tall is a bit larger than necessary, though the recommended minimum is 44. The .page-title-action links could add a line-height of 1.57142857 on narrower screens for exactly 44 pixels tall.

Alternatively, the common button-style links are 40 pixels tall, which would match the height for search fields and similar elements below the page title. For consistency with both of those, the .page-title-action links could add the padding, line-height and min-height found in .wp-core-ui .button styles. (The line-height is high, but that should be fine because the text does not wrap.)

@media screen and (max-width: 782px) {
  .wp-core-ui .button {
    padding: 0 14px;
    line-height: 2.71428571;
    min-height: 40px;
  }
}
Note: See TracTickets for help on using tickets.