Changing modal text back to link but with href

This commit is contained in:
brydon1 2023-07-28 11:51:58 -04:00
parent c7fbdf50a1
commit 8f7f35ab4a
2 changed files with 2 additions and 7 deletions

View file

@ -163,7 +163,7 @@ function mapStringToModal(str) {
const splitParams = params.split(',');
const bodyText
= `<button modalTarget="${splitParams[0]}" class="modal-text" aria-label="Modal window"><span>${splitParams[1]}</span></button>`;
= `<a href="#" modalTarget="${splitParams[0]}" class="modal-text" aria-label="Modal window">${splitParams[1]}</a>`;
let returnVal = str.replace(linkToReplace, bodyText);

View file

@ -65,17 +65,12 @@ body {
}
.modal-text {
display: contents !important;
display: inline;
color: $blue;
cursor: pointer;
border: none;
background-color: inherit;
padding: 0;
font-size: 14px;
line-height: 24px;
font-weight: 500;
span {
text-decoration: underline;
}
}
}