-
Notifications
You must be signed in to change notification settings - Fork 151
feat: added light mode support #1129
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: saurabhraghuvanshii <[email protected]>
|
||
// Determine colors based on theme when useThemeColors is true | ||
const tooltipBgColor = useThemeColors | ||
? theme.palette.mode === 'dark' |
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.
This conditional shouldn't be necessary. We can use a single color token / theme reference, which will dynamically reflect the appropriate contrasting color based on selected mode. There should be existing examples which you can use as reference, @saurabhraghuvanshii
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.
Look in Meshery UI, too, for examples.
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.
@FaheemOnHub can you offer an example?
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.
or @amitamrutiya, can you?
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.
ok sir
Signed-off-by: saurabhraghuvanshii <[email protected]>
Notes for Reviewers


before:
After


This PR fixes # none
Signed commits