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
What you were expecting:
A theme override should be able to set the size prop on the TextInputs, given that it's a style prop that doesn't depend on anything else.
What happened instead:
Setting the size prop's default on the theme to "medium" doesn't actually change any inputs; they need to be changed on a one-by-one basis by passing the prop size="medium" to ALL inputs if we want a global override.
This can be easily fixed by removing the prop from here and applying it to RA's default theme as a defaultProp instead; this way, we can override it ourselves if needed.
Environment
React-admin version: 4.16.4
The text was updated successfully, but these errors were encountered:
You're right, this should be done at the theme level. But since this is a breaking change, we can only publish this change in a major version. We're preparing the next major in the next branch, would you like to open a PR to fix it?
What you were expecting:
A theme override should be able to set the
size
prop on the TextInputs, given that it's a style prop that doesn't depend on anything else.What happened instead:
Setting the
size
prop's default on the theme to "medium" doesn't actually change any inputs; they need to be changed on a one-by-one basis by passing the propsize="medium"
to ALL inputs if we want a global override.Steps to reproduce:
TextInput
somewhereRelated code:
Relevant code:
Other information:
This can be easily fixed by removing the prop from here and applying it to RA's default theme as a defaultProp instead; this way, we can override it ourselves if needed.
Environment
The text was updated successfully, but these errors were encountered: