#44836 closed defect (bug) (fixed)
Uploaded plugin installation page: There is an extra <p> tag messing with a link
Reported by: | seedsca | Owned by: | pento |
---|---|---|---|
Milestone: | 5.2 | Priority: | normal |
Severity: | minor | Version: | 4.9.8 |
Component: | Upload | Keywords: | good-first-bug has-patch commit |
Focuses: | ui, administration | Cc: |
Description
update.php?action=upload-plugin shows the Activate Plugin button and Return to Plugin Installer link inside the same <p> tag.
This makes the link pop up when the button is active.
If they were both on their own <p> tags or the <p> tag wrapping them was removed, this would not happen.
I could not find where the <p> tag was added or I would have supplied a patch. Any guidance would be appreciated.
Attachments (6)
Change History (31)
#1
@
6 years ago
- Component changed from General to Upload
- Keywords good-first-bug needs-screenshots added
#2
@
6 years ago
Sure thing!
In the admin page, go to Plugins > Add New > Upload Plugin.
Upload a plugin file and install.
You will then be taken to yoursite.com/wp-admin/update.php?action=upload-plugin
If you click on the Activate Plugin button:
You will notice the link to the right jumps up:
Hope that helps and again, I'd love to do this myself, but I couldn't fine where the paragraph tag gets added. :)
#4
@
6 years ago
- Keywords has-patch added; needs-patch removed
/wp-includes/css/buttons.css line 267 has vertical-align:top set.
This does not seem necessary and it's messing with alignment.
I checked all 28 instances of .button-primary and found no changes at all.
Seems safe.
#6
@
6 years ago
@seedsca 4836.2.diff is working fine for me. Let's wait for core developer response on above solution.
#7
@
6 years ago
- Keywords needs-testing removed
Hi @seedsca and @pratikthink,
Thanks for your patches. I tested 4836.2.diff, which should probably be named 44836.2.diff, and it seems to work great as a solution to the "jumping" link issue. I didn't see any adverse changes to any other buttons that use the .button-primary class.
This looks good to merge in core.
#8
@
6 years ago
- Milestone changed from Awaiting Review to 5.0
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#9
follow-up:
↓ 11
@
6 years ago
@ianbelanger and @SergeyBiryukov Thanks!
Should I change the diff file's name? Or are we all set?
Happy to help the community that's helped me so much :)
#10
@
6 years ago
I don't think that there's any need to change the name of the diff @seedsca, unless Sergey says differently.
#11
in reply to:
↑ 9
@
6 years ago
Replying to seedsca:
Should I change the diff file's name? Or are we all set?
Thanks for the ticket and the patch :) It's generally helpful if the name of the diff is the same as the ticket number, but ultimately it doesn't matter that much, the patch is fine as is.
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
6 years ago
#14
@
6 years ago
- Milestone changed from 5.1 to Future Release
Punting this to a future release. Unless @SergeyBiryukov is still planning to review this, we should remove the assignment so someone else will pick it up.
@
6 years ago
Correctly renamed the diff file and removed fixed the path inside by removing the /src/ directory. Now using: diff --git a/wp-includes/css/buttons.css b/wp-includes/css/buttons.css
@
6 years ago
Seems I forgot to fully remove the /src/ directory from the paths of the diff file. Sorry for all the noice... This is the one :)
#17
@
6 years ago
- Keywords commit added
I retested the latest patch against trunk and it still applies just fine. I think this is all set to commit
This ticket was mentioned in Slack in #core by seedsca. View the logs.
6 years ago
#20
@
6 years ago
I tested patch 44836.3.diff and it working fine in trunk version.
In current situation if we remove vertical-align: top;
from below buttons.css then it will resolve the alignment issue and that active button state use .wp-core-ui p .button { vertical-align: baseline; }
child css.
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:hover, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary:active { background: #0073aa; border-color: #006799; box-shadow: inset 0 2px 0 #006799; /*vertical-align: top;*/ }
Class button-primary is used in whole core buttons so can we replace vertical-align: top;
to vertical-align: baseline;
in above css?
@ianbelanger can you please check this.
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
6 years ago
#22
@
6 years ago
Hi @mukesh27,
Changing vertical-align: top;
to vertical-align: baseline;
for these selectors:
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:hover, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary:active
Would achieve the same result as simply removing vertical-align: top;
from .wp-core-ui p .button
, but I think that it is an unnecessary change, since there doesn't seem to be anywhere else in core that has this bug. I vote for leaving the patch as is.
#23
@
6 years ago
- Owner changed from SergeyBiryukov to pento
- Status changed from reviewing to accepted
Hi @seedsca , welcome to WordPress Trac!
Thanks for the report, Can you please add steps to generate above issue and if possible add screenshot so we can understood it well.