Skip to content

Commit

Permalink
Merge pull request #859 from adobecom/MWPW-160689
Browse files Browse the repository at this point in the history
MWPW-160689
  • Loading branch information
Blainegunn authored Oct 18, 2024
2 parents bbddd55 + 9d91d6f commit 32b4f6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion acrobat/blocks/verb-widget/verb-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
}

.verb-cta {
cursor: pointer;
background: #1473e6;
border-radius: 8px;
padding: 11px 27px;
Expand Down Expand Up @@ -302,7 +303,7 @@
}

.verb-cta {
/* display: none; */
cursor: pointer;
}

.verb-mobile-cta {
Expand Down
9 changes: 2 additions & 7 deletions acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ export default async function init(element) {
element.append(widget);
} else {
widgetLeft.append(widgetHeader, widgetHeading, widgetCopy, errorState, widgetButton, button);
// Make ticket to localize links
legalTwo.innerHTML = legalTwo.outerHTML.replace(window.mph['verb-widget-terms-of-use'], `<a class="verb-legal-url" target="_blank" href="${touURL}"> ${window.mph['verb-widget-terms-of-use']}</a>`);
legalTwo.innerHTML = legalTwo.outerHTML.replace(window.mph['verb-widget-privacy-policy'], `<a class="verb-legal-url" target="_blank" href="${ppURL}"> ${window.mph['verb-widget-privacy-policy']}</a>`);

Expand Down Expand Up @@ -198,12 +197,8 @@ export default async function init(element) {
verbAnalytics('goto-app:clicked', VERB);
});

widgetButton.addEventListener('click', () => {
button.click();
});

widgetContainer.addEventListener('click', () => {
button.click();
widget.addEventListener('click', () => {
if (!mobileLink) { button.click(); }
});

button.addEventListener('click', () => {
Expand Down

0 comments on commit 32b4f6c

Please sign in to comment.