Merge pull request #740 from Safelite/SSR-1342-fix-link

Remove aria-label for links. Add sr-only class for injected links in alerts.
This commit is contained in:
bmauger 2024-06-06 17:12:16 -04:00 committed by GitHub
commit 46bd1037a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View file

@ -250,7 +250,8 @@ function mapStringToModal(str) {
);
const splitParams = params.split(',');
const bodyText = `<a href="#" modalTarget="${splitParams[0]}" class="modal-text" role="link">${splitParams[1]}</a>`;
const bodyText = `<a href="#" modalTarget="${splitParams[0]}" class="modal-text">
<span class="sr-only">Link:</span>${splitParams[1]}</a>`;
let returnVal = str.replace(linkToReplace, bodyText);

View file

@ -6,7 +6,6 @@
linkType="text"
:text="serviceZipLinkText"
href="#!"
aria-label="Modal window"
@clickEvent="openModal" />
</div>
</div>

View file

@ -41,7 +41,6 @@
:text="getRouterLinkDisplayTextFromCopy(copy)"
href="#!"
:data-bs-target="'#' + getRouterLinkRouteFromCopy(copy)"
aria-label="Modal window"
@clickEvent="textLinkEmit(copy)" />
</span>
</template>