-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tooltip: Fix positioning by anchoring to child element (#41268)
* ToolTip: Fix positioning by anchoring to child element * Fix left/right issue * Switch post schedule and post visiblity to 'bottom right' for consistency * Move left/right transformation to the ToolTip component * Switch back to functions, fix tests * Tidy up * Add changelog entry * Center Tooltip to the appropriate placement point * Attempt to simplify the implementation * Revert change to test * Revert default back to middle position * Fix error with getDisabledElement * Move ref in disabled element to the cloned child element * Update Storybook example with a small target to better demonstrate positioning issues * Simplify Tooltip story slightly * Consolidate child const for both uses * Revert previous change, but add a named const for the existing child ref for clarity
- Loading branch information
1 parent
ca9ece2
commit 49a4a01
Showing
4 changed files
with
67 additions
and
23 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