Skip to content

Commit

Permalink
Issue #487 some small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacha committed Nov 4, 2024
1 parent 552a371 commit b8306da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions themes/custom/ts_wrin/js/components/wri_cta_banners.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,13 @@ export default function(context) {
selectedModal.setAttribute("role", "dialog");
selectedModal.setAttribute("aria-labelledby", "modalTitle");
selectedModal.setAttribute("aria-describedby", "modalMessage");
selectedModal.querySelector(".field--name-field-title").id = "modalTitle";
selectedModal.querySelector(".field--name-field-intro").id = "modalMessage";
if (selectedModal.querySelector(".field--name-field-title")) {
selectedModal.querySelector(".field--name-field-title").id = "modalTitle";
}
if (selectedModal.querySelector(".field--name-field-intro")) {
selectedModal.querySelector(".field--name-field-intro").id =
"modalMessage";
}
showModal(selectedModal);
}

Expand Down
1 change: 0 additions & 1 deletion themes/custom/ts_wrin/sass/components/_popup_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

.region-top-modals .block-modal {
display: none;
position: absolute;
z-index: 100;
button.ui-button {
all: unset;
Expand Down

0 comments on commit b8306da

Please sign in to comment.