#45209 closed enhancement (fixed)
Add new plugin GUI Image click issue
Reported by: | Hitendra Chopda | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | normal | Version: | 5.1 |
Component: | Plugins | Keywords: | good-first-bug has-patch commit |
Focuses: | ui, accessibility, css, administration | Cc: |
Description (last modified by )
Once I click on Plugin image it will auto click on Plugin title and comes border around it.
Screen: https://ibb.co/cYozTA
I made some JS for solution see below:
jQuery('.plugin-card-top img').click(function(){ jQuery(this).parent().find('a').click();}); jQuery(".plugin-card-top img").hover(function(){ jQuery(this).css("cursor", "pointer"); });
Attachments (3)
Change History (26)
#1
@
6 years ago
- Description modified (diff)
- Focuses ui accessibility administration added
- Keywords 2nd-opinion close added; has-patch removed
#2
@
6 years ago
- Resolution set to invalid
- Status changed from new to closed
Thanks for reply.
@SergeyBiryukov Yes that correct, But once click on Plugin Icon at that time it will affect to plugin title link that logically flow not true.
Thanks.
This ticket was mentioned in Slack in #design by hitendra-chopda. View the logs.
6 years ago
#5
@
6 years ago
@Hitendra Chopda thanks for your report. That's intentional. Rather than an "auto click", this happens because both the plugin image and the plugin name are within the same link. It's a best practice to reduce the amount of links pointing to the same resource, see https://www.w3.org/TR/WCAG20-TECHS/H2.html
WordPress already uses this pattern in a few places, for example in the Media Library (list mode: wp-admin/upload.php?mode=list
) and the Credits page (wp-admin/credits.php
). See in the screenshot below the focus style when clicking on a media image:
For consistency, I'd rather suggest to add a focus style to the image when the parent link gets clicked. See https://core.trac.wordpress.org/browser/trunk/src/wp-admin/css/common.css?rev=43309&marks=265-272#L264
#6
@
6 years ago
@afercia thanks for the update.
It is possible to remove link border issue once click on image.
Thanks for explain me about the best practice to reduce the amount of links pointing to the same resource.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
6 years ago
#8
@
6 years ago
- Keywords needs-patch added; 2nd-opinion close removed
- Milestone changed from Awaiting Review to Future Release
- Type changed from defect (bug) to enhancement
Discussed during today's accessibility meeting and we'd recommend to add a focus style to the image too, as a visual enhancement.
#10
@
6 years ago
- Keywords has-patch added; needs-patch removed
Added a patch: https://core.trac.wordpress.org/attachment/ticket/45209/45209.diff
Please review.
#11
@
6 years ago
@Hitendra Chopda and @afercia I've added a focus style to the image for visual enhancement
This ticket was mentioned in Slack in #core by sergey. View the logs.
3 years ago
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
3 years ago
#17
@
3 years ago
- Focuses css added
- Keywords commit added; needs-testing removed
With 45209.diff, the image has the same blue outline as the text part of the link.
Tested in 6.0-alpha-52772 with Windows 10 browsers (Chrome 98, Firefox 97, Edge 98, Opera 83, IE 11)
#18
@
3 years ago
- Owner set to audrasjb
- Status changed from reopened to reviewing
Removing commit
keyword since the current patch needs to be refreshed against trunk.
This ticket was mentioned in PR #2351 on WordPress/wordpress-develop by audrasjb.
3 years ago
#19
Trac ticket: https://core.trac.wordpress.org/ticket/45209
3 years ago
#23
Committed in https://core.trac.wordpress.org/changeset/52790
Hi @hitendra-chopda, welcome to WordPress Trac! Thanks for the report.
I think that's intentional, the border shows the current focus for accessibility reasons.