components
components copied to clipboard
Applying a text transformation in the `Styles` parameter causes unrelated text- styles to be dropped
Describe the bug
Passing a text style, e.g. text-sm
, will cause other unrelated styles to disappear, e.g. text-brand-800
.
To Reproduce
This can be reproduced by viewing the PureBreadcrumbItem
:
<PureBreadcrumb>
<PureBreadcrumbItem Href="/sites" Name="Sites"/>
<PureBreadcrumbItem Href="/sites/1" Name="Site 1"/>
<PureBreadcrumbItem Name="Page"/>
</PureBreadcrumb>
Expected behavior
The PureBreadcrumbItem
should have a smaller size, but retain the color applied via the style.
Screenshots
normal usage:
using text-sm
:
Additional context
- This likely stems from the
StylePrioritizer
andKeyExtractor.ToCssKey(...)
- Need to confirm if this affects other style keys
similar issue effects applying bg-white
as the Style in PureHeader
: both bg-brand-800
and bg-white
are applied to the header.