We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://www.figma.com/file/kaC3jgqMSgqMEgnv7TIse1/%F0%9F%93%90Sign-in-flow?node-id=118%3A2349
Implement only the desktop version
The text was updated successfully, but these errors were encountered:
Previous implementation
import React, { FC, ReactElement } from 'react' import Tooltip from 'rc-tooltip' import { TooltipProps } from 'rc-tooltip/lib/Tooltip' import 'rc-tooltip/assets/bootstrap.css' import styles from './HzTooltip.module.scss' export type HzTooltipProps = TooltipProps & { wrapMaxWidth?: boolean wrapElement?: boolean } export const HzTooltip: FC< HzTooltipProps & { children: ReactElement } > = ({ overlay, wrapMaxWidth = true, wrapElement = false, children, ...props }) => { return overlay ? ( <Tooltip overlay={ wrapMaxWidth ? <div className={styles.wrapper}>{overlay}</div> : overlay } {...props} > {wrapElement ? ( // TODO: remove once https://github.com/react-component/tooltip/issues/18#issuecomment-411476678 has been resolved <div style={{ display: 'inline-block' }}>{children}</div> ) : ( children )} </Tooltip> ) : ( children ) }
.wrapper { max-width: 550px; word-wrap: break-word; }
Sorry, something went wrong.
Tooltip component (#27)
f3fb876
Closes #13
jozefhruska
Successfully merging a pull request may close this issue.
https://www.figma.com/file/kaC3jgqMSgqMEgnv7TIse1/%F0%9F%93%90Sign-in-flow?node-id=118%3A2349
Implement only the desktop version
The text was updated successfully, but these errors were encountered: