Skip to content

fix: Class not being set in FluentBadge #2464

@martin2karlsson

Description

@martin2karlsson

🐛 Bug Report

💻 Repro or Code Sample

I created a new project with

dotnet new blazor

  • Added Fluent package
  • Added reference in Program.cs
  • Added a using statement in the _Imports.razor
  • Modified the App.Razor:
@page "/"

<PageTitle>Home</PageTitle>

<FluentBadge Class="--set-primary-color">

    This is a test
</FluentBadge>

<h1>Hello, world!</h1>

Welcome to your new app.

🤔 Expected Behavior

I expected the class to be set on FluentBadge but it was not. This was working in 4.7.2

image

😯 Current Behavior

image

💁 Possible Solution

I could rollback to the earlier version, or write a js script to set the class name.

🔦 Context

🌍 Your Environment

  • OS & Device: Windows 10
  • Browser Microsoft Edge
  • .NET and Fluent UI Blazor library Version 8.0.7 and 4.9.3 (working in 8.0.7 and 4.7.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed:not-actionableThere is no action to be taken in response to this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions