-
Notifications
You must be signed in to change notification settings - Fork 963
chore: remove some usage of useClassName
#19346
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
Conversation
switch (variant) { | ||
case "error": | ||
return theme.palette.error.main; | ||
return "border-highlight-red"; |
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.
Just double checking, did border-border-destructive
not look right?
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.
I think they're basically the same color
)} | ||
</IconButton> | ||
</Tooltip> | ||
</div> | ||
<div css={{ fontWeight: 500, marginTop: 16 }}> | ||
<div className="text-medium mt-4"> |
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 should be font-medium
as well as the ones below
This hook is major tech debt. It's pretty hacky way to get emotion to give you a stable class name, which was more necessary when it was our primary method of styling. Now that we're migrating to Tailwind we should get rid of all usage of this hook and eventually remove it.