79261656

Date: 2024-12-08 00:26:13
Score: 1.5
Natty:
Report link

Thanks to S2B for pointing out that <div> wrappers were needed. Below is the shortest code that I was able to get working...

FluentAccordionTest.razor

@page "/dashboard"
<FluentAccordion>
<div>
    <FluentAccordionItem Heading="My Heading" Expanded="true">
            my content
    </FluentAccordionItem>
</div>
</FluentAccordion>

FluentAccordionTest.razor.css

::deep > fluent-accordion-item::part(heading) {
    background-color: yellow;
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mitch