Skip to content

feat: add tooltip to/in FluentAccordionItem #4305

@JamesNK

Description

@JamesNK

🙋 Feature Request

A title tooltip on FluentAccordionItem needs to be on the heading div. A value set inside the HeadingTemplate doesn't work.

Unfortunately, there isn't a way to set title on that div:

@if (Heading is not null)
{
<span slot="heading">@Heading</span>
}
else
{
<div slot="heading">
@HeadingTemplate
</div>
}

Setting title on FluentAccordionItem itself adds the title to item header and body.

🤔 Expected Behavior

A way to setting tooltip on just the header.

😯 Current Behavior

Can't

💁 Possible Solution

Add FluentAccordionItem.HeadingTooltip that sets tooltip on the div here:

@if (Heading is not null)
{
<span slot="heading">@Heading</span>
}
else
{
<div slot="heading">
@HeadingTemplate
</div>
}

🔦 Context

💻 Examples

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