-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JS to trigger hover and reposition the flyout (#47238)
* Use JS to trigger hover * Repositions the flyout * Fixes ul>ul problem * Opt for curly braces instead of one-liner, add fullstop in comment * Uses useLayoutEffect instead of useEffect * Uses styles on ref instead state * Adds .hovered comment * Reinstates position after scrolling and there is enough space * Update client/my-sites/sidebar-unified/style.scss Co-authored-by: Dave Smith <[email protected]> * Fixes tests needing isTouch() needing jsdom Co-authored-by: cpap <[email protected]> Co-authored-by: Dave Smith <[email protected]>
- Loading branch information
1 parent
20e31ba
commit c0e3167
Showing
5 changed files
with
100 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/** | ||
* @jest-environment jsdom | ||
*/ | ||
|
||
/** | ||
* External dependencies | ||
*/ | ||
|