Changing modal text back to link but with href
This commit is contained in:
parent
c7fbdf50a1
commit
8f7f35ab4a
2 changed files with 2 additions and 7 deletions
|
|
@ -163,7 +163,7 @@ function mapStringToModal(str) {
|
||||||
const splitParams = params.split(',');
|
const splitParams = params.split(',');
|
||||||
|
|
||||||
const bodyText
|
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);
|
let returnVal = str.replace(linkToReplace, bodyText);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,17 +65,12 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-text {
|
.modal-text {
|
||||||
display: contents !important;
|
display: inline;
|
||||||
color: $blue;
|
color: $blue;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: inherit;
|
|
||||||
padding: 0;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
span {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue