Problem/Motivation

On clicking the image the user should be directed to respective module page.

Steps to reproduce

Proposed resolution

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Manual Testing
  • ☐ Code Review
  • ✅ Accessibility Review
  • ✅ Automated tests needed/written?
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Utkarsh_33 created an issue. See original summary.

utkarsh_33’s picture

Assigned: utkarsh_33 » Unassigned
Status: Active » Needs review
narendrar’s picture

Issue tags: +Needs tests
narendrar’s picture

Status: Needs review » Needs work
Issue tags: -Needs tests

Added some suggestions

utkarsh_33’s picture

Status: Needs work » Needs review
narendrar’s picture

Status: Needs review » Reviewed & tested by the community

Changes looks good to me.

bnjmnm’s picture

Status: Reviewed & tested by the community » Needs work

Screenreaders/rotors/other assistive tech will interpret these as a bunch of empty links. The logo images are marked as decorative (no alt text) because they're pulled from an external source where alt data is not reliable. Adding links where the only content is a decorative image is a problem as there's no non-sighted way to identify that link.

utkarsh_33’s picture

Assigned: Unassigned » utkarsh_33
utkarsh_33’s picture

Assigned: utkarsh_33 » Unassigned
Status: Needs work » Needs review
srishtiiee’s picture

Status: Needs review » Needs work
StatusFileSize
new120.35 KB

Referring to the earlier discussions on making the project tile more accessible we should make the complete region having the logo and the title clickable.

Left a comment for the same in the MR.

utkarsh_33’s picture

Status: Needs work » Needs review
srishtiiee’s picture

Status: Needs review » Needs work
utkarsh_33’s picture

Assigned: Unassigned » utkarsh_33

utkarsh_33’s picture

Assigned: utkarsh_33 » Unassigned
Status: Needs work » Needs review
srishtiiee’s picture

Status: Needs review » Needs work
StatusFileSize
new80.65 KB

The new MR looks good! Just the focus on the bottom needs to be fixed. It is currently overlapped by another element:

rkoller’s picture

StatusFileSize
new47.86 KB
new303.47 KB
new314.63 KB

i've applied the latest state of the merge request. at least in my environment i was unable to reproduce the outline issue described in #17. i've tested on macos 12.6.1 in the latest versions of safari, firefox and edge. for me all browsers looked like in the screenshot here in safari:

focus outline around image and module title in a project browser module card
in regards rotor as mentioned in #8 i've quickly tested in macos voiceover:

voiceover rotor list of link elements with redundant module listings
voiceover list of form elements with redundant installed button listings

currently in both sections (links and form elements) it is impossible to distinguish between the listed elements for a screenreader users. you either have modules or installed button repeated in a redundant way. each of the entries is missing a context.

additionally in the rotors headings section there is no heading for any of the card components listed. the only way that one heading is listed is if you get one card heading into focus by tabbing into it, then start voiceover, and open the rotor. then you are able to see the card heading in focus in the rotors heading section as well. the rest of the modules is still not available in the rotors headings section.

voiceover list of headings only showing the heading of the card in focus the rest is not shown

and one detail i've notice i am not sure if it is related with the current issue. but if you tab through one card the first tab you get headline and logo into focus, on the next tab the focus disappears and on the last tab inside the card the button in the bottom right corner gets into focus.

rkoller’s picture

StatusFileSize
new236.62 KB

uploaded the image that i've added to the previous comment in my edit.

utkarsh_33’s picture

Status: Needs work » Needs review

Needs some changes.

utkarsh_33’s picture

Assigned: Unassigned » utkarsh_33
Status: Needs review » Needs work
utkarsh_33’s picture

Assigned: utkarsh_33 » Unassigned
tim.plunkett’s picture

Issue tags: +core-post-mvp
kevinting’s picture

I am working on this issue as part of DrupalCon Pittsburgh

kevinting’s picture

Assigned: Unassigned » kevinting

kevinting’s picture

Status: Needs work » Needs review

Added Merge Request. Solution is to just wrap the Image element with anchor tag linking to project page.
@earthday47 is willing to add tests as needed.

Changes committed to branch 3311992-make-image-clickable-pittsburgh2023

fjgarlin made their first commit to this issue’s fork.

kevinting’s picture

Thanks @fjgarlin for re-pushing commits and running tests.

earthday47 made their first commit to this issue’s fork.

earthday47’s picture

Hi all! Catching up on this issue's history, I do see that we wanted to have the top region clickable for accessibility reasons. I didn't want our work from yesterday to invalidate all of this useful work, so I rebased the 2nd-to-last MR/branch.

So we have a couple options... the a wrapping the Image element, which would create two anchors to tab through, or the original approach creating a click event/action on the wrapping div.

chrisfromredfin’s picture

I definitely prefer "the original approach creating a click event/action on the wrapping div." 2 click targets makes less sense especially for a non-sighted user.

fjgarlin’s picture

It'd also be great to close the MRs that are no longer used.

chrisfromredfin’s picture

Issue tags: +Needs reroll

Rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

Rebased

fjgarlin’s picture

Status: Needs review » Needs work

Tests are not passing. Back to NW.

chrisfromredfin’s picture

MrMason made their first commit to this issue’s fork.

MrMason’s picture

Assigned: kevinting » MrMason
MrMason’s picture

Status: Needs work » Needs review

This is now ready to be reviewed. A tag wraps around the title and logo image. Tests are properly processing this.

MrMason’s picture

Issue tags: +Portland2024
MrMason’s picture

Issue summary: View changes
mherman-pro’s picture

Status: Needs review » Needs work
StatusFileSize
new192.7 KB
new221.07 KB
new219.06 KB
new320.46 KB

This change causes the Module title to be center aligned to the image on the list view creating white space above and below the title.

list view with large module icon

Proposed solution is shrinking the image on the list view and sudo-list view, for small screens, so the title has better alignment and it is more consistent with the size used on drupal.org

list view with small module icon

There is also white space that appears on some screen widths to the left of the image.

list view with large module icon and white space on the left

The image and title also gets pushed to the left on the sudo-list view on small screens. (happens if you leave the view on "grid" but then shrink the screen)

list view with large module icon on small screen

MrMason’s picture

I'll update this today.

MrMason’s picture

StatusFileSize
new82.19 KB

I've updated the code to make the list view function properly.

Updated List View

I'm trying to figure out the best way to handle it changing from grid and then back to list when you change the size of the display. I'll keep working on that issue or make it a separate issue from this one.

MrMason’s picture

Status: Needs work » Needs review
sime’s picture

I applied this and I can click the icon. I had a look at the failing tests and wasn't able to establish why they are failing, for example this line is failing $this->svelteInitHelper('text', 'Dancing Queen'); which suggests a11y issue in the style/dom?

sime’s picture

Status: Needs review » Needs work
StatusFileSize
new200.36 KB

I'm having issues in Grid View and narrow window.

broken layout grid narrow

MrMason’s picture

@Sime the tests for this can be a bit janky. You may have to run it more than once to get it to show up. When I was running these in the past it would sometimes run the tests so fast that not everything had loaded in properly.

I'm going to look at the grid layout issues again this weekend.

MrMason’s picture

prashant.c’s picture

+1 for this. Images in the results should be clickable and take the user to the module's detail page.

Gauravvvv made their first commit to this issue’s fork.

gauravvvv’s picture

Status: Needs work » Needs review

Addressed #52, please review

kanchan bhogade’s picture

Status: Needs review » Needs work
StatusFileSize
new1.37 MB

Tested MR 468 on Drupal 11
Images in the results should be clickable, and the user should be taken to the module's detail page.
this is +1
Adding Screen recording for reference

but In the issue summary, MR is "Open Failed pipeline"

moving to "needs work"

zetagraph’s picture

Is this still relevant? Was trying to test the functionality, but the MR is very outdated, targets 1.0.x and doesn't work locally. How can this be moved forward?

tim.plunkett’s picture

Version: 1.0.x-dev » 2.0.x-dev
Assigned: MrMason » Unassigned
Status: Needs work » Active

If this is still desired for PB, it needs to be restarted for the 2.x branch

chrisfromredfin’s picture

Yes, I would say starting over based on 2.0.x is good.

It's still desirable to be able to click the image or the link. Again, the fundamental issue is being able to wrap those two elements in a single anchor tag in a semantic way, because having two things that click to the same target not good for accessibility.

If there's a way to meet both goals, we go for it. If there's not, then we can abandon and people will just have to click on the title. :)