Remove aria-label for links. Add sr-only class for generated links.

This commit is contained in:
Bryan Mauger 2024-06-06 15:46:49 -04:00
parent f1d504c50a
commit b41a55aa8f
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>