Skip to content

Flat table improvements#7892

Draft
edleeks87 wants to merge 3 commits into
masterfrom
flat-table-improvements
Draft

Flat table improvements#7892
edleeks87 wants to merge 3 commits into
masterfrom
flat-table-improvements

Conversation

@edleeks87

@edleeks87 edleeks87 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Proposed behaviour

Refactors FlatTable and FlatTableRow to consolidate state into a reducer, remove the asynchronous setting of tabIndexes in the rows whilst lifting the state into the parent wrapper.

Current behaviour

State is computed and set in the rows/children.
State is set separately in a layout effect meaning each triggers an update.
The tabIndex is computed and checked asynchronously

Checklist

  • Commits follow our style guide
  • Unit tests added or updated if required
  • Typescript d.ts file added or updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

Confirm no regressions

I can build 500 rows tables for whoever QAs to check but as the original issue was not reproduced as requested when it was raised I cannot guarantee that we will identify any niche implementations that might hinder performance.

master example of table

@edleeks87 edleeks87 force-pushed the flat-table-improvements branch from 22ee5a6 to 34c90e6 Compare April 14, 2026 15:24
@DipperTheDan DipperTheDan self-requested a review April 20, 2026 13:07
@edleeks87 edleeks87 added DO NOT MERGE Work in progress This is a WIP PR so may not be ready for review labels Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant