pureblazor / components

PureBlazor UI Components
https://pureblazor.com
Other
46 stars 4 forks source link

Applying a text transformation in the `Styles` parameter causes unrelated text- styles to be dropped #70

Open codymullins opened 5 months ago

codymullins commented 5 months ago

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:

image

using text-sm:

image

Additional context

codymullins commented 5 months ago

similar issue effects applying bg-white as the Style in PureHeader: both bg-brand-800 and bg-white are applied to the header.