[Box] Add warning when using responsive object API if a key is not a valid breakpoint #23218
Closed
2 tasks done
Labels
package: system
Specific to @mui/system
Current Behavior 😯
When using the responsive object API on the Box
sx
prop, I have made a mistake and got the {} nesting wrong. I ended up withI was surprised to see the color red style applied.
Expected Behavior 🤔
The color red should not be applied. There may even be a warning that
color
is not a valid breakpoint. Pseudo selectors should not show the warning as any css property in that case.First reported here #23053 (comment)
The text was updated successfully, but these errors were encountered: