-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add minor util tests #1294
Add minor util tests #1294
Conversation
✅ Deploy Preview for sendbird-uikit-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
src/utils/color.ts
Outdated
@@ -18,6 +18,7 @@ export const changeColorToClassName = (color: Colors): string => { | |||
case Colors.ONBACKGROUND_3: return 'sendbird-color--onbackground-3'; | |||
case Colors.ONBACKGROUND_4: return 'sendbird-color--onbackground-4'; | |||
case Colors.ONCONTENT_1: return 'sendbird-color--oncontent-1'; | |||
case Colors.ONCONTENT_2: return 'sendbird-color--oncontent-2'; |
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.
If we use the ONCONTENT_2, we need CSS set too. But it seems there's no CSS files for this className.
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 you said, we have a logic to convert the enum value to the class name, but there is no actual css for sendbird-color--oncontent-2
. Should we delete the logic and test for Colors.ONCONTENT_2
?
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.
Yes, I think it's good to remove it. We can always add it back when needed.
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.
Removed.
Changelog