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
consttheme={button: {primary: {bg: 'green'},secondary: {bg: 'blue'}}};
...
/* This style is not applied because primary being the default variant takes precedence because singular variants take precedence over multi variants */<Buttonvariants=['secondary']/>
Dripsy Code
In css/index.tsx
...
exportfunctionmapPropsToStyledComponent<P,T>(props: StyledProps<P>,options: ThemedOptions<T>){const{
themeKey,
defaultStyle,/* This needs to be removed or handled differently */
defaultVariant ='primary',
defaultVariants =[],}=options...
The text was updated successfully, but these errors were encountered:
That's interesting. What if we changed variants to primary by default, would that create the right behavior?
I think my hover support PR uses variants array to take precedence, but it isn't merged yet because of some unsolved bugs. I'll retry it after #74 is merged.
Example
Dripsy Code
In
css/index.tsx
The text was updated successfully, but these errors were encountered: