Skip to content
Snippets Groups Projects
Commit ef6f0e8f authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Avatare haben kein alt-Attribut im Image-Tag"

Closes #4014

Merge request studip/studip!2862
parent 21ccc143
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ const GlobalSearch = {
// Optional image...
if (result.img !== null) {
$(`<img src="${result.img}">`)
$(`<img src="${result.img}" alt="">`)
.wrap('<div class="globalsearch-result-img">')
.parent() // Element is now the wrapper
.appendTo(link);
......
......@@ -200,7 +200,7 @@ const Search = {
// Optional image...
if (result.img !== null) {
$('<div class="search-result-img hidden-tiny-down">')
.append(`<img src="${result.img}">`)
.append(`<img src="${result.img}" alt="">`)
.appendTo(link);
}
......
<template>
<img :src="url"
:width="width">
:width="width" alt="">
</template>
<script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment