Skip to content
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

Feat: Use tooltips instead of titles on whiteboard buttons #7643

Merged
merged 18 commits into from Dec 12, 2022

Conversation

sprocketc
Copy link
Collaborator

@sprocketc sprocketc commented Dec 8, 2022

Merged with #7641, because it is going to affect the implementation of this enhancement.

  • Move select and pan to main toolbar
  • Create tooltip component
  • Add tooltip support to button, toggle, toggle groups, select and color input
  • Style shortcuts on primary tools
Screencast.from.2022-12-09.12-44-06.webm

@github-actions github-actions bot added the :type/feature New feature label Dec 8, 2022
@sprocketc sprocketc marked this pull request as ready for review December 9, 2022 11:07
<>
{tooltip}
<span className="ml-2 keyboard-shortcut">
{shortcuts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The elements may need to have key props

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handled. I also eliminated a dom validation warning about a nested buttons.

@pengx17
Copy link
Contributor

pengx17 commented Dec 11, 2022

Nice work!
Tooltip in the tldraw dev demo does not show. I have committed a fix to this PR and I hope you don't mind 😀

Copy link
Contributor

@pengx17 pengx17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiensonqin tiensonqin force-pushed the feature/log-2002-use-tooltips-instead-of-titles branch from 52a9ee0 to ed8067d Compare December 12, 2022 10:10
@tiensonqin tiensonqin merged commit 109b491 into master Dec 12, 2022
@tiensonqin tiensonqin deleted the feature/log-2002-use-tooltips-instead-of-titles branch December 12, 2022 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:type/feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants