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
Library
React Components / v9 (@fluentui/react-components)
System Info
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