open-y-subprojects / openy_map

Map feature from Open Y DIstribution
GNU General Public License v3.0
1 stars 14 forks source link

DS-1014 Add empty alt to map markers #57

Closed froboy closed 11 months ago

froboy commented 11 months ago

https://yusa.atlassian.net/browse/DS-1014

Test Case executed: Locations page WAVE reported: Image is missing alternative text

What It Means: Image alternative text is not present.

Why It Matters: Each image must have an alt attribute. Without alternative text, the content of an image will not be available to screen reader users or when the image is unavailable.

How to Fix It: Add an alt attribute to the image. The attribute value should accurately and succinctly present the content and function of the image. If the content of the image is conveyed in the context or surroundings of the image, or if the image does not convey content or have a function, it should be given empty/null alternative text (alt="").

Standards and Guidelines: 1.1.1 Non-text Content (Level A)

Code:

<img class="tag_icon inline-hidden-sm" src="https://carnation-ws.y.org//modules/contrib/openy_map/img/map_icon_green.png" aria-hidden="true">

I believe the map markers meaning is conveyed with the existing labels, so an empty alt tag seems proper here.

podarok commented 11 months ago

tagged https://github.com/open-y-subprojects/openy_map/releases/tag/4.7