-
Notifications
You must be signed in to change notification settings - Fork 24
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
Allow tooltip via context #262
Conversation
Helpful styling for tooltip content
<Tooltip value={ tooltip } labelId={ prefixId(id) }> | ||
<Tooltip value={ tooltip } forId={ id } element={ props.element }> |
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.
Changed labelId
to forId
to serve a more general purpose, trigger element doesn't need to be a label
3e9f698
to
c1cad32
Compare
c1cad32
to
c4978b3
Compare
c4978b3
to
2d13ae3
Compare
src/PropertiesPanel.js
Outdated
* | ||
* @typedef { { | ||
* [id: String]: GetTooltipFunction | ||
* } } TooltipConfig |
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.
* } } TooltipConfig | |
* } } TooltipConfig |
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.
✅
2d13ae3
to
6289a86
Compare
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.
✅
Closes #261
Test against this branch: Existing descriptions provided by context were changed to tooltips provided by context.
The actual tooltip content and where they appear will be tackled later