-
Notifications
You must be signed in to change notification settings - Fork 14
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(PPDSC-2176): feat-ppdse-2176-tooltip-updates #256
Conversation
You can preview these changes on: |
@@ -109,6 +125,7 @@ export const StoryTooltip = () => ( | |||
> | |||
<Button | |||
size={ButtonSize.Small} | |||
// disabled |
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.
comment?
src/tooltip/tooltip.tsx
Outdated
@@ -32,6 +32,17 @@ const ThemelessTooltip: React.FC<TooltipProps> = ({ | |||
|
|||
const contentIsString = typeof content === 'string'; | |||
|
|||
const showSpanWarning = (): void => { |
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.
const showSpanWarning = (): void => { | |
const showDisabledWarning = (): void => { |
* feat(PPDSC-2176): feat-ppdse-2176-added tooltip to themecheck * feat(PPDSC-2176): feat-ppdse-2176-adding span * feat(PPDSC-2176): feat-ppdse-2176-added console warn * feat(PPDSC-2176): feat-ppdse-2176-added warn test * feat(PPDSC-2176): feat-ppdse-2176-updated warning messaget * feat(PPDSC-2176): feat-ppdse-2176-added production * feat(PPDSC-2176): feat-ppdse-2176-updated tests * feat(PPDSC-2176): feat-ppdse-2176-removed commeny * feat(PPDSC-2176): feat-ppdse-2176-updated tests * feat(PPDSC-2176): feat-ppdse-2176-changed useeffect * feat(PPDSC-2176): feat-ppdse-2176-updated useeffect * feat(PPDSC-2176): feat-ppdse-2171-chnaged func name
PPDSC-2176
What
`<Tooltip
content="You are not permitted to view this"
placement="right"
trigger={['focus', 'hover']} Button `
The above example will work, without using span a component with a disabled prop will not trigger user interactions so a Tooltip will not activate on normal events like hover.
I will also update the tooltip documentation here
i have also added a console.warn error so the user is alerted if the is not passed
5. What does the reviewers should expect- added a story example and test, also added Tooltip to theme checker
I have done:
I have tested manually:
Before:
After:
Who should review this PR:
How to test: