Skip to content

fix: FluentIcon Class property ignores square brackets after update to 4.8.0 #2251

@bpsc-wkubis

Description

@bpsc-wkubis

🐛 Bug Report

After update from 4.7.2 to 4.8.0 FluentIcon Class property ignores square brackets,

🤔 Expected Behavior

Square brackets are passed to the class of rendered svg

😯 Current Behavior

Square brackets are not passed do the rendered svg.

Example:
This code
<FluentIcon Class="This is fine [NotVisible]" Value="@(new Icons.Regular.Size20.AccessTime())" />

results in:
image

💁 Possible Solution

Did not find workaround

🔦 Context

I'm using Tailwind CSS, which relies on square brackets, and this update caused issues in several areas of my app.

🌍 Your Environment

  • OS & Device: Windows on PC
  • Browser Microsoft Edge, Google Chrome
  • .NET and Fluent UI Blazor library Version [e.g. 8.0.6 and 4.8.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs:apiAdditions, improvements, or fixes to API docsimprovementA non-feature-adding improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions