Repository navigation
Fix plugin-card button overlap on Add Plugins screen (#64686) #12376
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
d39aad3
1e238ce
ec8b004
93b45f4
f01bda1
2252f6d
e68b191
d7b36d6
2f8cfdc
32f1328
b4af26f
98585f9
cf40017
f3de6a2
8b8eed6
55708ef
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 |
|---|---|---|
|
|
@@ -1458,7 +1458,6 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before { | |
| margin: 0 5px 0 -2px; | ||
| -webkit-font-smoothing: antialiased; | ||
| -moz-osx-font-smoothing: grayscale; | ||
| vertical-align: top; | ||
| } | ||
|
|
||
| .plugin-card .updating-message::before { | ||
|
|
@@ -1483,6 +1482,7 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before { | |
| content: "\f147" / ""; | ||
| } | ||
|
|
||
| .plugin-card .update-now::before, | ||
| .plugin-card .updated-message::before, | ||
| .plugin-card .updating-message::before { | ||
| line-height: 1; | ||
|
|
@@ -1547,9 +1547,17 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before { | |
| } | ||
|
|
||
| .plugin-card-top { | ||
| display: grid; | ||
| grid-template-columns: 128px minmax(0, 1fr); | ||
| grid-template-rows: 1fr auto; | ||
| grid-template-areas: | ||
|
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. This grid layout causes the focus order to break. The order in which links get focus needs to match their visual order - with this layout, the order is Plugin Title > Action Button > Details Button > Author Link, but the order should be Plugin Title > Author Link > Action Button > Details Button. A possible alternative is to move the author link into the same container as the plugin name.
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. I believe this has been addressed in cf40017. The DOM is now structured as icon ( |
||
| "icon info" | ||
| "actions actions"; | ||
| column-gap: 24px; | ||
| row-gap: 8px; | ||
| position: relative; | ||
| padding: 16px; | ||
| min-height: 135px; | ||
| flex: 1 1 auto; | ||
| } | ||
|
|
||
| div.action-links, | ||
|
|
@@ -1558,32 +1566,37 @@ div.action-links, | |
| } | ||
|
|
||
| .plugin-card h3 { | ||
| margin: 0 12px 16px 0; | ||
| margin: 0 0 16px; | ||
| font-size: 18px; | ||
| line-height: 1.3; | ||
| } | ||
|
|
||
| .plugin-card .desc { | ||
| margin-inline: 0; | ||
| .plugin-card .plugin-icon { | ||
| grid-area: icon; | ||
| width: 128px; | ||
| height: 128px; | ||
| } | ||
|
|
||
| .plugin-card .name, | ||
| .plugin-card .desc > p { | ||
| margin-left: 148px; | ||
| /* Stretch the title link over the icon so clicking the icon opens the details modal. */ | ||
| .plugin-card .name a::after { | ||
| content: ""; | ||
| position: absolute; | ||
| inset-block-start: 16px; | ||
| inset-inline-start: 16px; | ||
| width: 128px; | ||
| height: 128px; | ||
| } | ||
|
|
||
| @media (min-width: 1101px) { | ||
| .plugin-card .name, | ||
| .plugin-card .desc > p { | ||
| margin-right: 128px; | ||
| } | ||
| .plugin-card-info { | ||
| grid-area: info; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| @media (min-width: 481px) and (max-width: 781px) { | ||
| .plugin-card .name, | ||
| .plugin-card .desc > p { | ||
| margin-right: 128px; | ||
| } | ||
| .plugin-card .action-links { | ||
| grid-area: actions; | ||
| padding-top: 16px; | ||
| border-top: 1px solid rgba(0, 0, 0, 0.1); | ||
| } | ||
|
|
||
| .plugin-card .column-description { | ||
|
|
@@ -1646,26 +1659,18 @@ div.action-links, | |
| margin-top: 1em; | ||
| } | ||
|
|
||
| .plugin-card .action-links { | ||
| position: absolute; | ||
| top: 20px; | ||
| right: 20px; | ||
| width: 120px; | ||
| } | ||
|
|
||
| .plugin-action-buttons { | ||
| clear: right; | ||
| float: right; | ||
| margin-bottom: 1em; | ||
| text-align: right; | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| align-items: center; | ||
| gap: 8px 16px; | ||
| } | ||
|
|
||
| .plugin-action-buttons li { | ||
| margin-bottom: 10px; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .plugin-card-bottom { | ||
| clear: both; | ||
| padding: 16px; | ||
| background-color: #f6f7f7; | ||
| border-top: 1px solid rgba(0, 0, 0, 0.1); | ||
|
|
@@ -1745,15 +1750,6 @@ div.action-links, | |
| margin: 20px 20px 0; | ||
| } | ||
|
|
||
| .plugin-card .plugin-icon { | ||
| position: absolute; | ||
| top: 20px; | ||
| left: 20px; | ||
| width: 128px; | ||
| height: 128px; | ||
| margin: 0 20px 20px 0; | ||
| } | ||
|
|
||
| .no-plugin-results { | ||
| color: #646970; /* same as no themes and no media */ | ||
| font-size: 18px; | ||
|
|
@@ -1792,42 +1788,6 @@ div.action-links, | |
| /* =Media Queries | ||
| -------------------------------------------------------------- */ | ||
|
|
||
| @media screen and (max-width: 1100px) and (min-width: 782px), (max-width: 480px) { | ||
| .plugin-card .action-links { | ||
| position: static; | ||
| margin-left: 148px; | ||
| width: auto; | ||
| } | ||
|
|
||
| .plugin-action-buttons { | ||
| float: none; | ||
| margin: 1em 0 0; | ||
| text-align: left; | ||
| } | ||
|
|
||
| .plugin-action-buttons li { | ||
| display: inline-block; | ||
| vertical-align: middle; | ||
| } | ||
|
|
||
| .plugin-action-buttons li .button { | ||
| margin-right: 20px; | ||
| } | ||
|
|
||
| .plugin-card h3 { | ||
| margin-right: 24px; | ||
| } | ||
|
|
||
| .plugin-card .name, | ||
| .plugin-card .desc { | ||
| margin-right: 0; | ||
| } | ||
|
|
||
| .plugin-card .desc p:first-of-type { | ||
| margin-top: 0; | ||
| } | ||
| } | ||
|
|
||
| @media screen and (max-width: 782px) { | ||
| /* WP List Table Options & Filters */ | ||
| .tablenav { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.