Skip to content

[Bug]: Accordion: Expand icon does not rotate on iPad Safari #23163

@spmonahan

Description

@spmonahan

Library

React Components / v9 (@fluentui/react-components)

System Info

iPad Pro (12.9in)
iPadOS 15.4.1

Are you reporting Accessibility issue?

no

Reproduction

https://react.fluentui.dev/?path=/docs/components-accordion--default#default

Bug Description

Actual Behavior

When tapping an Accordion header the expand icon does not change to indicate the header is open.

Expected Behavior

The rotation of the Accordion header expand icon should change to indicate if the header is expanded or collapsed.

This is probably because the rotation is handled as an attribute on the SVG rather than as a CSS style: https://github.com/microsoft/fluentui/blob/master/packages/react-components/react-accordion/src/components/AccordionHeader/useAccordionHeader.tsx#L73

This implementation also prevents custom expandIcons from rotating as the rotation is only applied to the default icon.

The first screen in the video is the iPad, the second screen in Edge 101.0.1210.53 on Windows 11

accordion_expand_icon.MOV

Logs

No response

Requested priority

Normal

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

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions