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
When using the <Tag> component with a size prop, the size gets overridden if the parent component also has a size prop. This makes it impossible to set a different size for the <Tag>
Package
@carbon/react
Browser
No response
Package version
v1.82.1
React version
No response
Description
When using the
<Tag>
component with a size prop, the size gets overridden if the parent component also has a size prop. This makes it impossible to set a different size for the<Tag>
Reproduction/example
https://stackblitz.com/edit/github-lshfjdex?file=src%2FApp.tsx&preset=node=
Steps to reproduce
<Button size="xl">
<Tag size="sm">
<Tag>
appears with sizexl
instead ofsm
Suggested Severity
None
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: