-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spacer: Show tooltip with height value on resize #23077
Merged
Merged
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f4e3c66
Try initial resizer visualizer tooltips
c3e2627
Improve ResizableVisualizer implementation
1fdb531
Add README.md file
5b1d213
Clean up. Add default values. Forward refs. Add classNames.
976d034
Rename ResizableVisualizer to ResizeTooltip
b8ae084
Integrate ResizeTooltip with Spacer block
16cee81
Add ResizeTooltip README to docs manifest
e3561e8
Adjust aria-hidden pass-through for inner Label
e8a6549
Fix Firefox rendering on drag events
fff2aa4
Fix ResizeTooltip for Spacer
a17de29
Rename "variant" to "position". Default position to "corner". Add "bo…
94bee59
Update ResizeTooltip position in Spacer edit to "cursor"
b10237b
Update className for ResizeTooltip. Adjustments to README and default…
a7286e1
Use Text component for Tooltip label text
8d9cb89
Adjust ResizeTooltip useEffect isRendered check
1d2c647
Improve cursor position onMove
39f02a3
Rename isEnabled prop to isVisible
9611aad
Improve cursor position rendering
466dbaa
Improve mouse events for position='cursor'
0c2fd7b
Split cursorPosition to cursorX and cursorY
5393c72
Fix typo
23575e7
Fix multiline comments
4905215
Lowercase px in label
3bcd869
Remove cursor from resize visualizers
3e9e51c
Improve rendering for bottom/corner
997e1fe
Adjust Resize tooltip padding. Add comment re: specificity
3e22d44
Merge branch 'master' into add/resize-visualizers
69ff337
Merge branch 'master' into add/resize-visualizers
2db1359
Merge branch 'master' into add/resize-visualizers
b0b1375
Merge branch 'master' into add/resize-visualizers
3b341a7
Move ResizeTooltip to ResizableBox. Enable with __experimental. Remov…
4810069
Update docs manifest
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should no longer be in the manifest, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm... not sure. This was auto generated. There's a
README.md
inside the directory. I guess I can remove it? Ideally I'd like to preserve the docs though.An alternative would be to inline comment some of the documentation (for now)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... yeah, I see now. Well, I don’t have a preference. Maybe @nosolosw has a different take on how we should document components and let these tools work for us? Anyway, LGTM :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a peek at how the script that processes the handbook docs works. It seems that it looks for README files within the components folder (see) and then updates the manifest used to expose them in the handbook (see ResizableBox page).
I'm unfamiliar with how we deal with subcomponents that aren't exposed via the
@wordpress/components
package. I had a quick look and this seems to be the only case? Anyway, it seems that we should either expose the resize-tooltip as a component proper or look at ways to remove its page from the handbook as it can't be used by external consumers of the API. For the latter, we could go with a quick hack (use a lowercased readme, use any other name for the file) or fix the issue (update the glob pattern to only match README files within the top-level component folder).