You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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,
}
);
The text was updated successfully, but these errors were encountered: