Skip to content

Commit

Permalink
Merge pull request #57 from froboy/DS-1014-icon-alt
Browse files Browse the repository at this point in the history
fix(accessibility): DS-1014 Add empty alt to map markers
  • Loading branch information
podarok authored Oct 12, 2023
2 parents 71088d8 + 8345bf1 commit 8a46ec3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/openy_map_lb/assets/js/map.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/openy_map_lb/assets/js/map.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/openy_map_lb/assets/src/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@
*/
Drupal.theme.openyMapControlCheckbox = (checked, tag, imageSource) =>
`<label class="btn btn-default ${checked ? 'active' : ''}" for="tag_${tag}">
<img class="tag_icon inline-hidden-sm" src="${imageSource}" aria-hidden="true" />
<img class="tag_icon inline-hidden-sm" src="${imageSource}" aria-hidden="true" alt="" />
<input autocomplete="off" id="tag_${tag}" class="tag_${tag}" type="checkbox" value="${tag}" ${checked ? 'checked="checked"' : ''}/>${tag}
</label>`;

Expand Down
2 changes: 1 addition & 1 deletion openy_map.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openy_map:
version: 1.1
version: 1.2
js:
js/map.js: {}
css:
Expand Down

0 comments on commit 8a46ec3

Please sign in to comment.