FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(tooltip): allow manual trigger, access to tippy.js props by jeff-phillips-18 · Pull Request #2769 · patternfly/patternfly-react · GitHub

fix(tooltip): allow manual trigger, access to tippy.js props - #2769

Merged
jschuler merged 1 commit into
patternfly:masterfrom
jeff-phillips-18:tooltip-props
Aug 26, 2019
Merged

fix(tooltip): allow manual trigger, access to tippy.js props#2769
jschuler merged 1 commit into
patternfly:masterfrom
jeff-phillips-18:tooltip-props

Conversation

Copy link
Copy Markdown
Member

What:
Allows passing properties through to PopoverBase and hence tippy.js
Adds the manual trigger option with the isVisible prop.

dtaylor113 previously approved these changes Aug 23, 2019

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-2769.surge.sh

jeff-phillips-18 changed the title fix(tooltip): allow manul trigger, access to tippy.js props fix(tooltip): allow manual trigger, access to tippy.js props Aug 23, 2019
/** z-index of the tooltip */
zIndex?: number;
/** additional Props to pass through to tippy.js */
tippyProps?: TippyProps;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

i think we should just add what we need in terms of props instead of a passthrough? otherwise could be more maintenance if some tippy props don't behave as expected in our component

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think it's better to allow the full set to be passed thru. How can we know up front which props consumers want to customize? Limiting the options will cause limits to its adoptability. If there are any issues with using a particular prop, then an issue can be raised.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

what about the fact that there'll be duplicate props, for example we expose enableFlip which would be the same as tippyProps.flip

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

whatever props we accept/set will override what is in the tippyProps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

okay let's go with this, can you also add the passthrough to the Popover component as well then? Thanks

Copy link
Copy Markdown
Member Author

@jschuler @dtaylor113 Added passthru props to the Popover component as well.

jschuler merged commit de6b211 into patternfly:master Aug 26, 2019

Copy link
Copy Markdown
Collaborator

Your changes have been released in:

  • @patternfly/react-core@3.92.1
  • @patternfly/react-docs@4.10.26
  • @patternfly/react-inline-edit-extension@2.11.1
  • demo-app-ts@2.21.5
  • @patternfly/react-table@2.19.1
  • @patternfly/react-topology@2.8.1
  • @patternfly/react-virtualized-extension@1.1.132

Thanks for your contribution! 🎉

jeff-phillips-18 deleted the tooltip-props branch November 11, 2021 14:02
This file contains hidden or 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
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.

4 participants


Back | FazBrowse Home | New Git URL