From 5ca988aa437944d9881d88f7eadfdb336faf10f4 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Wed, 2 Oct 2024 11:04:16 -0500 Subject: [PATCH] Use aria-labelledby for Display note so the note is the label --- src/app/content/highlights/components/DisplayNote.tsx | 7 +++---- src/app/content/highlights/components/TruncatedText.tsx | 5 +++-- .../components/__snapshots__/DisplayNote.spec.tsx.snap | 9 ++++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/app/content/highlights/components/DisplayNote.tsx b/src/app/content/highlights/components/DisplayNote.tsx index eb10c014dd..aa1afd5be3 100644 --- a/src/app/content/highlights/components/DisplayNote.tsx +++ b/src/app/content/highlights/components/DisplayNote.tsx @@ -19,7 +19,6 @@ import Confirmation from './Confirmation'; import MenuToggle, { MenuIcon } from './MenuToggle'; import TruncatedText from './TruncatedText'; import { isElementForOnClickOutside, useOnClickOutside } from './utils/onClickOutside'; -import { useIntl } from 'react-intl'; // tslint:disable-next-line:variable-name const CloseIcon = styled((props) =>