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 added a custom style called states. It is supposed to handle custom states like error, disabled, success etc.
When adding those, and there are a couple of default stylings already added to the component, they won't take effect, as they are overwritten.
🐛 Bug Report
I added a custom style called
states
. It is supposed to handle custom states like error, disabled, success etc.When adding those, and there are a couple of default stylings already added to the component, they won't take effect, as they are overwritten.
To Reproduce
Here is how I created those custom
states
:Component with default-props:
What's important here is
states.error.borderColor
.Expected behavior
Render component with error-border
Link to repl or repo (highly encouraged)
https://codesandbox.io/s/quiet-firefly-i1g68?file=/src/App.tsx
Component1
works fine.Component2
will not render thestate.error.borderColor
, instead it will render the default border.Run
npx envinfo --system --binaries --npmPackages @xstyled/system,@xstyled/styled-components,styled-components --markdown --clipboard
The text was updated successfully, but these errors were encountered: