Skip to content

[Bug]: fluent-accordion icons aligned incorrectly with multiline header #33347

@skansakar

Description

@skansakar

Component

Accordion

Package version

9.55.0

React version

18.2.0

Environment

-

Current Behavior

When the accordion header is longer than one line, the icon is centred vertically. See screenshot from stackblitz.
Image

Expected Behavior

Expect the icon to be aligned vertically with the first line of text in the header

Reproduction

https://stackblitz.com/edit/fgeddy?file=src%2Fexample.tsx

Steps to reproduce

  1. Create an accordion with a long header text that overflows to more than 1 line
  2. Observe the icon's alignment issue.

Are you reporting an Accessibility issue?

None

Suggested severity

Medium - Has workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions