Skip to content

EuiAccordion does not respect arrowDisplay="right" when extraAction is configured #3881

@legrego

Description

@legrego

The EuiAccordion supports changing the location of the arrow via the arrowDisplay prop.
When set to right, the arrow should render to the righthand side of the component, like the docs site shows:

image

This works fine for a basic accordion, but if the accordion is configured with an extraAction, then the arrowDisplay prop is ignored, and it always renders to the left.

        <EuiAccordion
          id={`featureCategory_${category.id}`}
          arrowDisplay="right"
          buttonContent={<div>Some button content</div>}
          extraAction={<div>Some extra action</div>}
        >
          <div>
            Some content here
          </div>
        </EuiAccordion>

Discovered this while trying to implement design changes to the Spaces Management screen in Kibana: https://www.figma.com/file/dBta1q3JgFe3Cfhw5h76Oq/%5BIn-Progress%5D-Spaces-%26-Roles-Solution-Grouping?node-id=103%3A1234

cc @MichaelMarcialis

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions