Components propagating CSS properties as props #14318
Labels
bug
Something isn't working as expected
code
Code improvements
components
Related to global components
Some components (e.g.
Button
,Card
) spread props and thus propagate some unintended attributes to the DOM (e.g.margin
).Please fix it to avoid the annoying warnings. Ideally, let's not use props spreading to avoid problems like this and be more explicit.
The text was updated successfully, but these errors were encountered: