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

Border is being overwritten despite appearing after the original border class #13675

Closed
AsuraKev opened this issue May 13, 2024 · 0 comments
Closed

Comments

@AsuraKev
Copy link

Hi there

I encountered a weird issue where my border is being overwritten when it shouldnt

Consider the following code:
When isActive is set to true, i then apply a border-blue-50 class to change the border color to true, I am expecting it to override my default border color which is transparent but border-transparent takes precedence for some reason. any idea? thanks

const style = clsx(
'p-2 rounded border-2 border-solid hover:border-blue-50 border-transparent flex-1 m-0',
{
'border-blue-50 bg-grey-5': isActive,
}
);

image

@AsuraKev AsuraKev changed the title Border is being overwritten dispite appearing after the original border class Border is being overwritten despite appearing after the original border class May 13, 2024
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

No branches or pull requests

1 participant