Skip to content

Commit

Permalink
[WNMGDS-765] Remove duplicate SR content in UsaBanner (#1797)
Browse files Browse the repository at this point in the history
Icon title is duplicate content. Make it aria-hidden
  • Loading branch information
pwolfert authored Jun 2, 2022
1 parent eb357d9 commit 8117503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
9 changes: 2 additions & 7 deletions packages/design-system/src/components/UsaBanner/UsaBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,8 @@ export const UsaBanner: React.FunctionComponent<UsaBannerProps> = (props: UsaBan
<strong>{t('usaBanner.httpsHeaderText')}</strong>
<br />
{t('usaBanner.httpsAText')}
<strong> {t('usaBanner.httpsLockText')} </strong> ({' '}
<LockIcon
className="ds-c-usa-banner__lock-image"
title={t('usaBanner.httpsLockText')}
ariaHidden={false}
/>{' '}
) {t('usaBanner.httpsOrText')}
<strong> {t('usaBanner.httpsLockText')} </strong>{' '}
<LockIcon className="ds-c-usa-banner__lock-image" /> {t('usaBanner.httpsOrText')}
<strong> {t('usaBanner.httpsText')} </strong>
{t('usaBanner.httpsDetailText')}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,26 +111,16 @@ exports[`UsaBanner renders correctly 1`] = `
lock
</strong>
(
<svg
aria-hidden="false"
aria-labelledby="icon-6__title"
aria-hidden="true"
class="ds-c-icon ds-c-icon--lock ds-c-usa-banner__lock-image"
focusable="false"
id="icon-6"
role="img"
viewBox="0 0 52 64"
xmlns="http://www.w3.org/2000/svg"
>
<title
id="icon-6__title"
>
lock
</title>
</svg>
/>
)
or
<strong>
Expand Down

0 comments on commit 8117503

Please sign in to comment.