-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Admin: Standardize mobile viewport heights for interactive elements on list table pages #11461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
fac703a
81c1592
4576131
6a588bc
f6a9d5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1757,6 +1757,42 @@ table.form-table td .updated p { | |||||||||||||||||
| display: block; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| .wp-core-ui .tablenav input[type="text"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="password"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="date"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="datetime"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="datetime-local"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="email"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="month"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="number"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="search"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="tel"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="time"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="url"], | ||||||||||||||||||
| .wp-core-ui .tablenav input[type="week"], | ||||||||||||||||||
| .wp-core-ui .tablenav select { | ||||||||||||||||||
| min-height: 40px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| .wp-core-ui .tablenav select { | ||||||||||||||||||
| line-height: 2.375; | ||||||||||||||||||
| font-size: 16px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+1777
to
+1780
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these styles really necessary? |
||||||||||||||||||
|
|
||||||||||||||||||
| #doaction, | ||||||||||||||||||
| #doaction2, | ||||||||||||||||||
| #post-query-submit { | ||||||||||||||||||
| min-height: 40px; | ||||||||||||||||||
| line-height: 2.71428571; | ||||||||||||||||||
| padding: 0 14px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+1782
to
+1788
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To avoid such overwrites, I believe we should remove wordpress-develop/src/wp-admin/css/forms.css Lines 521 to 528 in 8a99228
Instead, we should be able to use |
||||||||||||||||||
|
|
||||||||||||||||||
| .wp-core-ui .tablenav .button { | ||||||||||||||||||
| min-height: 40px; | ||||||||||||||||||
| line-height: 2.71428571; | ||||||||||||||||||
| padding: 0 14px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| p.search-box { | ||||||||||||||||||
| float: none; | ||||||||||||||||||
| width: 100%; | ||||||||||||||||||
|
|
@@ -1775,6 +1811,12 @@ table.form-table td .updated p { | |||||||||||||||||
| margin-bottom: 0; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| p.search-box .button { | ||||||||||||||||||
| min-height: 40px; | ||||||||||||||||||
| line-height: 2.71428571; /* 38px - matches default mobile button */ | ||||||||||||||||||
| padding: 0 14px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+1814
to
+1818
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||||||||||||
|
|
||||||||||||||||||
| p.search-box input[type="submit"] { | ||||||||||||||||||
| margin-bottom: 10px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use the
button-compactclass 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.wordpress-develop/src/wp-includes/css/buttons.css
Line 383 in 8a99228
Therefore, simply adding
button-compactto the following locations should resolve the issue.wordpress-develop/src/wp-admin/includes/class-wp-screen.php
Line 972 in 8a99228
wordpress-develop/src/wp-admin/includes/class-wp-screen.php
Line 979 in 8a99228