Skip to content

Class properties in several components filter out classes with colons #4278

@codymullins

Description

@codymullins

Class properties seem to filter out class names with colons. This is on v5.

The following WORKS:

<FluentAnchorButton Href="/" Appearance="ButtonAppearance.Subtle"
                    Color="var(--colorNeutralForegroundOnBrand)"
                    BackgroundColor="var(--colorBrandBackgroundHover)"
                    Class="hidden md-block">
    Playground
</FluentAnchorButton>

The following DOES NOT WORK, only the hidden will be applied.

<FluentAnchorButton Href="/" Appearance="ButtonAppearance.Subtle"
                    Color="var(--colorNeutralForegroundOnBrand)"
                    BackgroundColor="var(--colorBrandBackgroundHover)"
                    Class="hidden md:block">
    Playground
</FluentAnchorButton>

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-investigationNeeds additional investigationv5For the next major version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions