Skip to content

fix: FluentCounterBadge does not respect AdditionalAttributes #3541

@adamint

Description

@adamint

🐛 Bug Report

FluentCounterBadge completely ignores AdditionalAttributes

💻 Repro or Code Sample

 var cut = TestContext.RenderComponent<FluentCounterBadge>(parameters =>
        {
            parameters.Add(p => p.Count, 1);
            parameters.Add(p => p.AdditionalAttributes, new Dictionary<string, object>
            {
                { "data-test", "test" },
            });
        });

verify that markup does not contain data-test

🤔 Expected Behavior

The attributes should be placed on the outermost div.

😯 Current Behavior

💁 Possible Solution

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • .NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions