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
Forms and filters should use the outlined variant, but they don't
Related code:
In fact, defaultProps from the theme only work if there is no default value in the component code. But all our inputs define their variants and margins.
What you were expecting:
Being able to set all inputs as outlined using a MUI theme:
What happened instead:
The inputs keep the
filled
variant.Steps to reproduce:
I forked the simple example codesandbox to give it a custom theme:
https://codesandbox.io/s/cranky-bhabha-7xqjwy?file=/src/index.tsx
Forms and filters should use the outlined variant, but they don't
Related code:
In fact,
defaultProps
from the theme only work if there is no default value in the component code. But all our inputs define their variants and margins.for instance, in
ResettableTextField
:The default values for
variant
,margin
andsize
should be defined in the default theme, not in the components.Other information:
Environment
The text was updated successfully, but these errors were encountered: