[Tag] Always keep the span
element outside of tagContent
to support more flexible custom design
#4289
Labels
to be published
to be published
Details
As the title shows, I want to always keep the
span
element outside oftagContent
to support more flexible custom design.Now, the
src/tag/tag.tsx
code is as follows.You can see that
tagContent
will be wrapped byspan
only whenmaxWidth
is notundefined
. Otherwise, no one can style it, such as adding a background color only to thetagContent
area or setting a color only fortagContent
. So I suggest that regardless of whethermaxWidth
isundefined
, we still addspan
The text was updated successfully, but these errors were encountered: