From e4055abd897e7f6bf47ae721154f9e76d25b78e7 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Wed, 4 Sep 2024 15:03:27 -0500 Subject: [PATCH] Style focus, not hover --- src/app/components/Dropdown.tsx | 1 - src/app/components/__snapshots__/DotMenu.spec.tsx.snap | 4 ---- src/app/components/__snapshots__/Dropdown.spec.tsx.snap | 4 ---- .../SummaryPopup/__snapshots__/ContextMenu.spec.tsx.snap | 2 -- .../components/__snapshots__/DisplayNote.spec.tsx.snap | 2 -- 5 files changed, 13 deletions(-) diff --git a/src/app/components/Dropdown.tsx b/src/app/components/Dropdown.tsx index 314b7c82fb..e26a59415f 100644 --- a/src/app/components/Dropdown.tsx +++ b/src/app/components/Dropdown.tsx @@ -217,7 +217,6 @@ export const DropdownList = styled(TrappingDropdownList)` font-size: 1.4rem; line-height: 2rem; - &:hover, &:focus { background: ${theme.color.neutral.formBorder}; ${defaultFocusOutline} diff --git a/src/app/components/__snapshots__/DotMenu.spec.tsx.snap b/src/app/components/__snapshots__/DotMenu.spec.tsx.snap index 82f30f67f8..f6da4f2c26 100644 --- a/src/app/components/__snapshots__/DotMenu.spec.tsx.snap +++ b/src/app/components/__snapshots__/DotMenu.spec.tsx.snap @@ -174,8 +174,6 @@ exports[`Dropdown matches snapshot 1`] = ` line-height: 2rem; } -.c12 li button:hover, -.c12 li a:hover, .c12 li button:focus, .c12 li a:focus { background: #d5d5d5; @@ -451,8 +449,6 @@ exports[`Dropdown matches snapshot on right align 1`] = ` line-height: 2rem; } -.c12 li button:hover, -.c12 li a:hover, .c12 li button:focus, .c12 li a:focus { background: #d5d5d5; diff --git a/src/app/components/__snapshots__/Dropdown.spec.tsx.snap b/src/app/components/__snapshots__/Dropdown.spec.tsx.snap index efccb1a648..4f3dd5a0b1 100644 --- a/src/app/components/__snapshots__/Dropdown.spec.tsx.snap +++ b/src/app/components/__snapshots__/Dropdown.spec.tsx.snap @@ -130,8 +130,6 @@ exports[`Dropdown matches snapshot 1`] = ` line-height: 2rem; } -.c6 li button:hover, -.c6 li a:hover, .c6 li button:focus, .c6 li a:focus { background: #d5d5d5; @@ -442,8 +440,6 @@ exports[`Dropdown matches snapshot for tab hidden (open) 1`] = ` line-height: 2rem; } -.c4 li button:hover, -.c4 li a:hover, .c4 li button:focus, .c4 li a:focus { background: #d5d5d5; diff --git a/src/app/content/highlights/components/SummaryPopup/__snapshots__/ContextMenu.spec.tsx.snap b/src/app/content/highlights/components/SummaryPopup/__snapshots__/ContextMenu.spec.tsx.snap index fa4a44900a..6f9d5fc110 100644 --- a/src/app/content/highlights/components/SummaryPopup/__snapshots__/ContextMenu.spec.tsx.snap +++ b/src/app/content/highlights/components/SummaryPopup/__snapshots__/ContextMenu.spec.tsx.snap @@ -552,8 +552,6 @@ exports[`ContextMenu match snapshot when open 1`] = ` line-height: 2rem; } -.c13 li button:hover, -.c13 li a:hover, .c13 li button:focus, .c13 li a:focus { background: #d5d5d5; diff --git a/src/app/content/highlights/components/__snapshots__/DisplayNote.spec.tsx.snap b/src/app/content/highlights/components/__snapshots__/DisplayNote.spec.tsx.snap index a84a75dc05..f9d9bfa86a 100644 --- a/src/app/content/highlights/components/__snapshots__/DisplayNote.spec.tsx.snap +++ b/src/app/content/highlights/components/__snapshots__/DisplayNote.spec.tsx.snap @@ -457,8 +457,6 @@ exports[`DisplayNote matches snapshot when focused with opened dropdown 1`] = ` line-height: 2rem; } -.c12 li button:hover, -.c12 li a:hover, .c12 li button:focus, .c12 li a:focus { background: #d5d5d5;