-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add alt attribute to image nodes #5393
Conversation
Signed-off-by: Julius Härtl <[email protected]>
/backport to stable28 |
The backport to # Switch to the target branch and update it
git checkout stable28
git pull origin stable28
# Create the new backport branch
git checkout -b backport/5393/stable28
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 8a3c21a0
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/5393/stable28 Error: Failed to clone repository: Failed to clone and cache repo: Cloning into '.'... Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
/backport to stable28 |
@@ -41,6 +41,7 @@ | |||
<div class="media__wrapper"> | |||
<img v-show="loaded" | |||
:src="imageUrl" | |||
:alt="alt" | |||
class="image__main" | |||
@load="onLoaded"> | |||
<div class="metadata"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juliushaertl maybe we should hide the span below (class="name"
) for a11y? meaning making it aria-hidden="true"
. Because it duplicates the alt tag.
📝 Summary
It seems otherwise browser would read out the full URL with screen readers. We already have the alt text as user defined description for each image so we should make use of that.