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
Describe the bug
The styles defined in a compound variant in a base component seem to get applied when they should not when I provide default variants and derive a new component.
Expected behavior
In the above example, any IconButton I render with variant='ghost' also has the styles from the default compound variant where variant='solid' and color='primary' applied. The button correctly has a transparent background, but it also has the primary hover effect, which I would not expect.
Environment? (please complete the following information):
OS: Linux
Browser Firefox
Node.js Version: v21.7.1
Version 1.7.0
The text was updated successfully, but these errors were encountered:
Describe the bug
The styles defined in a compound variant in a base component seem to get applied when they should not when I provide default variants and derive a new component.
To Reproduce
Button.tsx
IconButton.tsx
Expected behavior
In the above example, any IconButton I render with
variant='ghost'
also has the styles from the default compound variant wherevariant='solid'
andcolor='primary'
applied. The button correctly has a transparent background, but it also has the primary hover effect, which I would not expect.Environment? (please complete the following information):
The text was updated successfully, but these errors were encountered: