Fix: SEO#956
Conversation
|
There was a problem hiding this comment.
Code Review
This pull request improves accessibility by adding ARIA labels and alt text to links and images in the README and video landing page, and adds a null check to the wave visualizer script. Feedback focuses on refining the accessibility implementation, specifically by removing redundant or conflicting aria-label attributes that either duplicate visible text, violate WCAG standards, or override dynamic content.
| <div class="modal-dialog modal-lg"> | ||
| <div class="modal-content"> | ||
| <div class="modal-header"><a href="" id="videoPageLink"><h4 id="videoModalTitle"></h4></a> | ||
| <div class="modal-header"><a href="/" id="videoPageLink" aria-label="Go to video page"><h4 id="videoModalTitle"></h4></a> |
There was a problem hiding this comment.
The aria-label="Go to video page" will override the dynamic content of the h4 tag for screen reader users. Since the video title is programmatically inserted into the h4 (via videoTitleElem.textContent in the script) before the modal is displayed, removing the aria-label allows screen readers to announce the specific video title, providing much better context than a generic label.
<div class="modal-header"><a href="/" id="videoPageLink"><h4 id="videoModalTitle"></h4></a>Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Bhumika Garg <bhumikatech2024@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Bhumika Garg <bhumikatech2024@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Bhumika Garg <bhumikatech2024@gmail.com>
Notes for Reviewers
This PR fixes #955
Signed commits