Skip to content

Commit

Permalink
Merge pull request #858 from adobecom/MWPW-160618
Browse files Browse the repository at this point in the history
MWPW-160618, MWPW-160613, MWPW-160606
  • Loading branch information
Blainegunn authored Oct 17, 2024
2 parents c45a743 + a5b32bd commit bbddd55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions acrobat/blocks/verb-widget/verb-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
}

.verb-icon {
background-size: cover;
display: inline-flex;
width: 56px;
height: 56px;
}

.verb-image {
Expand Down Expand Up @@ -252,6 +252,7 @@
flex: 1 1 55%;
flex-direction: row;
padding: 48px 0 48px 48px;
cursor: pointer;
}

.verb-mobile-cta {
Expand Down Expand Up @@ -284,8 +285,8 @@
}

.verb-icon {
height: auto;
width: 40px;
height: 40px;
}

.verb-title {
Expand Down
8 changes: 6 additions & 2 deletions acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export default async function init(element) {
} 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" 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" href="${ppURL}"> ${window.mph['verb-widget-privacy-policy']}</a>`);
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>`);

legalWrapper.append(legal, legalTwo);
footer.append(iconSecurity, legalWrapper, infoIcon);
Expand Down Expand Up @@ -202,6 +202,10 @@ export default async function init(element) {
button.click();
});

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

button.addEventListener('click', () => {
verbAnalytics('filepicker:shown', VERB);
verbAnalytics('dropzone:choose-file-clicked', VERB);
Expand Down

0 comments on commit bbddd55

Please sign in to comment.