From 811750386847cf2cc0c5e1979992e23903a85dcd Mon Sep 17 00:00:00 2001 From: Patrick Wolfert Date: Thu, 2 Jun 2022 10:21:41 -0700 Subject: [PATCH] [WNMGDS-765] Remove duplicate SR content in UsaBanner (#1797) Icon title is duplicate content. Make it aria-hidden --- .../src/components/UsaBanner/UsaBanner.tsx | 9 ++------- .../__snapshots__/UsaBanner.test.jsx.snap | 14 ++------------ 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/packages/design-system/src/components/UsaBanner/UsaBanner.tsx b/packages/design-system/src/components/UsaBanner/UsaBanner.tsx index ceadc8b855..b9fbd16ee8 100644 --- a/packages/design-system/src/components/UsaBanner/UsaBanner.tsx +++ b/packages/design-system/src/components/UsaBanner/UsaBanner.tsx @@ -153,13 +153,8 @@ export const UsaBanner: React.FunctionComponent = (props: UsaBan {t('usaBanner.httpsHeaderText')}
{t('usaBanner.httpsAText')} - {t('usaBanner.httpsLockText')} ({' '} - {' '} - ) {t('usaBanner.httpsOrText')} + {t('usaBanner.httpsLockText')} {' '} + {t('usaBanner.httpsOrText')} {t('usaBanner.httpsText')} {t('usaBanner.httpsDetailText')}

diff --git a/packages/design-system/src/components/UsaBanner/__snapshots__/UsaBanner.test.jsx.snap b/packages/design-system/src/components/UsaBanner/__snapshots__/UsaBanner.test.jsx.snap index 12f7a9cd32..576cc09bd4 100644 --- a/packages/design-system/src/components/UsaBanner/__snapshots__/UsaBanner.test.jsx.snap +++ b/packages/design-system/src/components/UsaBanner/__snapshots__/UsaBanner.test.jsx.snap @@ -111,26 +111,16 @@ exports[`UsaBanner renders correctly 1`] = ` lock - ( - - lock - - + /> - ) or