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

feat: add tooltip position appear below #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kala2
Copy link

@kala2 kala2 commented Oct 1, 2020

No description provided.

Copy link
Contributor

@ankiiitraj ankiiitraj left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

src/lib/index.tsx Outdated Show resolved Hide resolved
@kala2 kala2 requested a review from prateek3255 October 2, 2020 09:53
@prateek3255
Copy link
Collaborator

Please update the README as well and don't modify the demo.

@kala2 kala2 force-pushed the tooltip-bottom branch 6 times, most recently from 6822bc8 to 59ceee7 Compare October 7, 2020 09:00
fix: add type string literal for tooltipPosition

Update Readme

Revert to previous Readme

Update Readme from master
@kala2
Copy link
Author

kala2 commented Oct 14, 2020

@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" />
Copy link
Collaborator

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 => ({
Copy link
Collaborator

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

@prateek3255
Copy link
Collaborator

@kala2 Any updates here?

Base automatically changed from master to main January 20, 2021 15:14
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.

3 participants