Skip to content

fix: Arbitrary attributes are not applied to FluentMenuButton #3797

@thebarrettlo

Description

@thebarrettlo

🐛 Bug Report

Arbitrary attributes are not accepted on the FluentMenuButton component, which prevents usage with attributes sometimes used on other components (e.g., slot).

💻 Repro or Code Sample

<FluentToolbar>
    <FluentMenuButton Text="Menu button" slot="end" />
</FluentToolbar>

🤔 Expected Behavior

In the repro above, the menu button should be justified against the right side of the toolbar.

😯 Current Behavior

The menu button is not justified against the right side of the toolbar, and does not have the slot="end" attribute applied to the element when inspected in the browser.

💁 Possible Solution

Apply @attributes=AdditionalAttributes to the menu button's container like done in other components.

🔦 Context

Trying to use the menu button component in the toolbar component at the "end" slot.

🌍 Your Environment

  • OS & Device: Windows 11 on PC
  • Browser: Microsoft Edge
  • .NET 9 and Fluent UI Blazor library Version 4.11.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed:doneWork is finishedcommunity:contributionIssue will/can be addressed by community contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions