-
Notifications
You must be signed in to change notification settings - Fork 51
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
Added a prop for light mode in the tooltip #10
Conversation
@prateek3255 this is ready for review! |
@prateek3255 Ready for the review! Mentioning for visibility! 😃 |
src/lib/index.tsx
Outdated
backgroundColor: "white", | ||
color: "black", | ||
} | ||
|
||
const tooltipBaseStyles: 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.
Make this a function that accepts theme instead of creating another variable.
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.
You mean a function that takes theme as input and returns the properties of the theme.
in this case, if theme is light function should return {backgrondColor: "white", color: "black"}
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.
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.
Done! :)
updated Props table on Readme using typescript string literals fixes
Thanks for working on this @ankiiitraj |
@all-contributors please add @ankiiitraj for code |
I've put up a pull request to add @ankiiitraj! 🎉 |
Fixes #9
Gif demonstration for changes!