-
Notifications
You must be signed in to change notification settings - Fork 52
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: add tooltip position appear below #12
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM 🎉
Please update the README as well and don't modify the demo. |
6822bc8
to
59ceee7
Compare
fix: add type string literal for tooltipPosition Update Readme Revert to previous Readme Update Readme from master
@prateek3255 Could you please review the README and accept the PR? Thanks!! |
@@ -8,7 +8,7 @@ const App = () => ( | |||
style={{ display: "flex", alignItems: "center", flexDirection: "column" }} | |||
> | |||
<h1 style={{ marginBottom: "50px" }}>Copy email address to clipboard</h1> | |||
<CopyMailTo email="email@domain.com" /> | |||
<CopyMailTo email="email@domain.com" tooltipPosition="below" /> |
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.
As I mentioned previously as well, please don't modify the demo.
@@ -25,8 +27,8 @@ const containerBaseStyles: React.CSSProperties = { | |||
position: "relative", | |||
}; | |||
|
|||
const tooltipBaseStyles: React.CSSProperties = { | |||
bottom: "26px", | |||
const tooltipBaseStyles = (tooltipPosition: string): React.CSSProperties => ({ |
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.
The type should be ToolTipPosition, right
@kala2 Any updates here? |
No description provided.