Skip to content

Commit

Permalink
Focus follows mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Sep 18, 2024
1 parent bf58aa1 commit 4b0421c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ return <FormattedMessage id={message}>
tabIndex={0}
onClick={onClick}
target={target}
onMouseEnter={focusMe}
{...analyticsDataProps}
>{prefix}{msg}</a>
// Safari support tab-navigation of buttons; this operates with space or Enter
Expand Down
2 changes: 2 additions & 0 deletions src/app/components/__snapshots__/DotMenu.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ exports[`Dropdown matches snapshot 1`] = `
<a
href="/wooo"
onClick={[Function]}
onMouseEnter={[Function]}
role="button"
tabIndex={0}
>
Expand Down Expand Up @@ -515,6 +516,7 @@ exports[`Dropdown matches snapshot on right align 1`] = `
<a
href="/wooo"
onClick={[Function]}
onMouseEnter={[Function]}
role="button"
tabIndex={0}
>
Expand Down
2 changes: 2 additions & 0 deletions src/app/components/__snapshots__/Dropdown.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ exports[`Dropdown matches snapshot 1`] = `
<a
href="/wooo"
onClick={[Function]}
onMouseEnter={[Function]}
role="button"
tabIndex={0}
>
Expand Down Expand Up @@ -478,6 +479,7 @@ exports[`Dropdown matches snapshot for tab hidden (open) 1`] = `
<a
href="/wooo"
onClick={[Function]}
onMouseEnter={[Function]}
role="button"
tabIndex={0}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ exports[`ContextMenu match snapshot when open 1`] = `
<a
data-analytics-region="MH gotohighlight"
href="/link/to/highlight"
onMouseEnter={[Function]}
role="button"
tabIndex={0}
target="_blank"
Expand Down

0 comments on commit 4b0421c

Please sign in to comment.