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

Allow tooltip via context #262

Merged
merged 2 commits into from
Jul 21, 2023
Merged

Allow tooltip via context #262

merged 2 commits into from
Jul 21, 2023

Conversation

smbea
Copy link
Contributor

@smbea smbea commented Jul 20, 2023

Closes #261

Test against this branch: Existing descriptions provided by context were changed to tooltips provided by context.

Screenshot 2023-07-20 at 12 13 13

The actual tooltip content and where they appear will be tackled later

Helpful styling for tooltip content
@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Jul 20, 2023
<Tooltip value={ tooltip } labelId={ prefixId(id) }>
<Tooltip value={ tooltip } forId={ id } element={ props.element }>
Copy link
Contributor Author

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

@smbea smbea marked this pull request as ready for review July 20, 2023 09:59
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Jul 20, 2023
@smbea smbea marked this pull request as draft July 20, 2023 10:00
@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed needs review Review pending labels Jul 20, 2023
@smbea smbea force-pushed the 261-tooltip-via-context branch from 3e9f698 to c1cad32 Compare July 20, 2023 10:11
@smbea smbea marked this pull request as ready for review July 20, 2023 10:18
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Jul 20, 2023
@smbea smbea requested review from a team, philippfromme, marstamm and barmac and removed request for a team July 20, 2023 10:23
@smbea smbea force-pushed the 261-tooltip-via-context branch from c1cad32 to c4978b3 Compare July 20, 2023 13:17
@smbea smbea force-pushed the 261-tooltip-via-context branch from c4978b3 to 2d13ae3 Compare July 21, 2023 08:02
*
* @typedef { {
* [id: String]: GetTooltipFunction
* } } TooltipConfig
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* } } TooltipConfig
* } } TooltipConfig

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smbea smbea force-pushed the 261-tooltip-via-context branch from 2d13ae3 to 6289a86 Compare July 21, 2023 08:54
@philippfromme philippfromme self-requested a review July 21, 2023 09:29
Copy link
Contributor

@philippfromme philippfromme left a comment

Choose a reason for hiding this comment

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

@smbea smbea merged commit b92c57f into main Jul 21, 2023
@smbea smbea deleted the 261-tooltip-via-context branch July 21, 2023 09:31
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support tooltip population via context
2 participants