Recourses/activity link output twice regression / bug in 4.3

Recourses/activity link output twice regression / bug in 4.3

by Stuart Lamour -
Number of replies: 3
Hi moodle folks,

Looking at the code in moodle 4.3 the link to a resource/activity is now output twice.

Once on the icon, and then on the text link.

As a screen reader user this means the link is announced twice, and displayed twice in the links menu, as there are now 2 anchor tags to the same item in the html.

Bootstrap has the streched-link class which was used appropriately in previous versions of moodle, without having to output one link for the icon and another for the actual text link.

I'm sure you've already found this regression/bug, but if not let us know and we can add a ticket in jira.
Stuart

Average of ratings: -
In reply to Stuart Lamour

Re: Recourses/activity link output twice regression / bug in 4.3

by Helen Foster -
Picture of Moodle HQ team

Hi Stuart,

Thanks for highlighting this accessibility issue. I searched in the tracker but couldn't find a report of it, so it would be good if you have chance to create an issue. Thanks in advance!

In reply to Stuart Lamour

Re: Recourses/activity link output twice regression / bug in 4.3

by Ferran Recio Calderó -
Hi Struart,

Thanks for the post.

The stretched link cannot be used anymore because it will cover the advanced controls like the visibility or the group mode badges (added in 4.3). This is why the activity icon has a link on its own. However, the icon link should be ignored by screen readers because it is redundant.

I created an issue to fix the bug: https://tracker.moodle.org/browse/MDL-80384

Average of ratings: Useful (2)
In reply to Ferran Recio Calderó

Re: Recourses/activity link output twice regression / bug in 4.3

by Stuart Lamour -
Hi Ferran,

apologies for the late reply - xmas and new year holidays which i hope you enjoyed too!

i'd created a tracker issue and came here to add it https://tracker.moodle.org/browse/MDL-80534

For the links within stretched-link you can add position: relative; and z-index to make them clickable.

I'll follow https://tracker.moodle.org/browse/MDL-80384 and can help with testing if that would be useful?

Best wishes
Stuart