Remove aria-label for links. Add sr-only class for generated links.
This commit is contained in:
parent
f1d504c50a
commit
b41a55aa8f
3 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
linkType="text"
|
||||
:text="serviceZipLinkText"
|
||||
href="#!"
|
||||
aria-label="Modal window"
|
||||
@clickEvent="openModal" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
:text="getRouterLinkDisplayTextFromCopy(copy)"
|
||||
href="#!"
|
||||
:data-bs-target="'#' + getRouterLinkRouteFromCopy(copy)"
|
||||
aria-label="Modal window"
|
||||
@clickEvent="textLinkEmit(copy)" />
|
||||
</span>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in a new issue