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.

Activity

sopranopillow

sopranopillow commented on Nov 26, 2024

@sopranopillow
Contributor

I agree, the chevron should be aligned at the top. As mentioned in the severity, this has a workaround by using a classname with makestyles. Thanks for reporting it @skansakar!

added a commit that references this issue on Dec 6, 2024
93235ed
linked a pull request that will close this issue on Dec 6, 2024
self-assigned this
on Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @dmytrokirpa@sopranopillow@layershifter@skansakar

    Issue actions

      [Bug]: fluent-accordion icons aligned incorrectly with multiline header · Issue #33347 · microsoft/fluentui