Skip to content

Commit

Permalink
Merge pull request #822 from adobecom/MWPW-159032
Browse files Browse the repository at this point in the history
MWPW-159032: Verb Widget - Accessibility Issues
  • Loading branch information
Blainegunn committed Sep 30, 2024
2 parents c68a956 + 8bc58b7 commit 611a7fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions acrobat/blocks/verb-widget/verb-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
text-align: center;
}

.verb-footer a {
text-decoration: underline;
}

#CIDTWO {
/* display: none; */
Expand Down Expand Up @@ -168,7 +171,7 @@
transform: translate(-50%, -50%);
left: 50%;
font-size: 14px;
font-weight: 400;
font-weight: 400;
}

.verb-errorText {
Expand Down Expand Up @@ -236,7 +239,7 @@
margin-left: 15px;
}

.verb-mobile-cta:hover,
.verb-mobile-cta:hover,
.verb-mobile-cta:active {
background-color: #0054b6;
color: #fff;
Expand Down
4 changes: 2 additions & 2 deletions acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ export default async function init(element) {
const widgetIcon = createTag('div', { class: 'verb-icon' });
const widgetTitle = createTag('div', { class: 'verb-title' }, 'Acrobat');
const widgetCopy = createTag('p', { class: 'verb-copy' }, window.mph[`verb-widget-${VERB}-description`]);
const widgetButton = createTag('label', { for: 'file-upload', class: 'verb-cta' }, window.mph['verb-widget-cta']);
const widgetButton = createTag('label', { for: 'file-upload', class: 'verb-cta', tabindex: 0 }, window.mph['verb-widget-cta']);
const widgetMobileButton = createTag('a', { class: 'verb-mobile-cta', href: mobileLink }, window.mph['verb-widget-cta-mobile']);
const button = createTag('input', { type: 'file', id: 'file-upload', class: 'hide' });
const widgetImage = createTag('img', { class: 'verb-image', src: `/acrobat/img/verb-widget/${VERB}.png` });
const widgetImage = createTag('img', { class: 'verb-image', src: `/acrobat/img/verb-widget/${VERB}.png`, alt: '' });
// Since we're using placeholders we need a solution for the hyperlinks
const legal = createTag('p', { class: 'verb-legal' }, `${window.mph['verb-widget-legal']} `);
const terms = createTag('a', { class: 'verb-legal-url', target: '_blank', href: 'https://www.adobe.com/legal/terms.html' }, window.mph.tou);
Expand Down

0 comments on commit 611a7fe

Please sign in to comment.