Skip to content

fix(table): CollapseColumn uses wrong caret icon for expandable row toggle #12727

Open

Description

@redhat-chai-bot

Bug description

CollapseColumn.tsx uses RhMicronsCaretDownIcon for the standard expandable row toggle, resulting in a confusing down→up caret pattern when combined with the -180deg CSS rotation in the PatternFly core CSS package.

This is the same issue that was fixed for the tree-view variant in treeRow.tsx, which correctly uses RhMicronsCaretRightIcon.

Current behavior

In packages/react-table/src/components/Table/CollapseColumn.tsx:

import RhMicronsCaretDownIcon from
  'patternfly-react-icons/dist/esm/icons/rh-microns-caret-down-icon';
// ...
<RhMicronsCaretDownIcon />  // wrong icon

Result:

  • Collapsed: ▼ (caret-down at 0°)
  • Expanded: ▲ (caret-down rotated -180°)

Expected behavior

Should match the tree-view pattern in treeRow.tsx:

import RhMicronsCaretRightIcon from
  'patternfly-react-icons/dist/esm/icons/rh-microns-caret-right-icon';
// ...
<RhMicronsCaretRightIcon />  // correct icon

Result:

  • Collapsed: ► (caret-right at 0°)
  • Expanded: ▼ (caret-right rotated 90°)

Suggested fix

In CollapseColumn.tsx, change RhMicronsCaretDownIcon to RhMicronsCaretRightIcon.

The companion CSS fix is tracked in patternfly/patternfly#8712.

Related


AI-generated. Review for accuracy.

@rh-gvincent requested from Slack

Chai persona: Konflux Help

Activity

  1. Junaidm678 commented on Nov 22, 2026

    @Junaidm678

    Hi! I'd like to work on this issue.

    I've reviewed the suggested fix and would like to contribute a PR for the React component change.

    I'll also check the related CSS issue #8712 to make sure the icon change works correctly with the existing rotation styles.

    Please let me know if this approach sounds good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions