Opened 2 years ago
Last modified 2 years ago
#61659 new enhancement
Add New links at the top of some pages become huge on smaller screens
| Reported by: | Luan Ramos | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: | ui, css |
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)
Change History (4)
#1
@
2 years 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.
#2
@
2 years ago
- Component General → Administration
- Summary The buttons in the heading of some pages are becoming huge. → Add New links at the top of some pages become huge on smaller screens
- Type defect (bug) → 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;
}
}
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
When I access some tabs in WordPress, the buttons at the top appear very large. This "giant" appearance is significantly breaking the layout.