Open source video conferencing app powered by LiveKit. Built with Django and React.
♿️(frontend) hide decorative icons from screen readers per issue #730
lebaudantoinedad396273c95
diff --git a/src/frontend/src/features/home/components/LaterMeetingDialog.tsx b/src/frontend/src/features/home/components/LaterMeetingDialog.tsxindex 526c61ef..24cddea8 100644--- a/src/frontend/src/features/home/components/LaterMeetingDialog.tsx+++ b/src/frontend/src/features/home/components/LaterMeetingDialog.tsx@@ -71,7 +71,11 @@ export const LaterMeetingDialog = ({aria-label={t('copyUrl')}tooltip={t('copyUrl')}>- {isRoomUrlCopied ? <RiCheckLine /> : <RiFileCopyLine />}+ {isRoomUrlCopied ? (+ <RiCheckLine aria-hidden="true" />+ ) : (+ <RiFileCopyLine aria-hidden="true" />+ )}</Button>)}</div>@@ -103,13 +107,18 @@ export const LaterMeetingDialog = ({>{isCopied ? (<>- <RiCheckLine size={18} style={{ marginRight: '8px' }} />+ <RiCheckLine+ size={18}+ style={{ marginRight: '8px' }}+ aria-hidden="true"+ />{t('copied')}</>) : (<><RiFileCopyLinestyle={{ marginRight: '6px', minWidth: '18px' }}+ aria-hidden="true"/>{t('copy')}</>@@ -131,7 +140,11 @@ export const LaterMeetingDialog = ({>{isCopied ? (<>- <RiCheckLine size={18} style={{ marginRight: '8px' }} />+ <RiCheckLine+ size={18}+ style={{ marginRight: '8px' }}+ aria-hidden="true"+ />{t('copied')}</>) : (@@ -139,6 +152,7 @@ export const LaterMeetingDialog = ({<RiFileCopyLinesize={18}style={{ marginRight: '8px', minWidth: '18px' }}+ aria-hidden="true"/>{isHovered ? (t('copy')@@ -173,6 +187,7 @@ export const LaterMeetingDialog = ({className={css({fill: 'primary.500',})}+ aria-hidden="true"/></div><Text variant="sm" style={{ marginTop: '1rem' }}>diff --git a/src/frontend/src/features/rooms/components/InviteDialog.tsx b/src/frontend/src/features/rooms/components/InviteDialog.tsxindex 63338280..8bc1d1a5 100644--- a/src/frontend/src/features/rooms/components/InviteDialog.tsx+++ b/src/frontend/src/features/rooms/components/InviteDialog.tsx@@ -115,7 +115,11 @@ export const InviteDialog = (props: Omit<DialogProps, 'title'>) => {aria-label={t('copyUrl')}tooltip={t('copyUrl')}>- {isRoomUrlCopied ? <RiCheckLine /> : <RiFileCopyLine />}+ {isRoomUrlCopied ? (+ <RiCheckLine aria-hidden="true" />+ ) : (+ <RiFileCopyLine aria-hidden="true" />+ )}</Button>)}</div>@@ -147,13 +151,18 @@ export const InviteDialog = (props: Omit<DialogProps, 'title'>) => {>{isCopied ? (<>- <RiCheckLine size={18} style={{ marginRight: '8px' }} />+ <RiCheckLine+ size={18}+ style={{ marginRight: '8px' }}+ aria-hidden="true"+ />{t('copied')}</>) : (<><RiFileCopyLinestyle={{ marginRight: '6px', minWidth: '18px' }}+ aria-hidden="true"/>{t('copy')}</>diff --git a/src/frontend/src/features/rooms/livekit/components/Info.tsx b/src/frontend/src/features/rooms/livekit/components/Info.tsxindex c416ebea..afab80e0 100644--- a/src/frontend/src/features/rooms/livekit/components/Info.tsx+++ b/src/frontend/src/features/rooms/livekit/components/Info.tsx@@ -78,12 +78,20 @@ export const Info = () => {>{isCopied ? (<>- <RiCheckLine size={24} style={{ marginRight: '6px' }} />+ <RiCheckLine+ size={24}+ style={{ marginRight: '6px' }}+ aria-hidden="true"+ />{t('roomInformation.button.copied')}</>) : (<>- <RiFileCopyLine size={24} style={{ marginRight: '6px' }} />+ <RiFileCopyLine+ size={24}+ style={{ marginRight: '6px' }}+ aria-hidden="true"+ />{t('roomInformation.button.copy')}</>)}