Title: Table: Add indeterminate checkbox state support for select-all header · Issue #12404 · patternfly/patternfly-react · GitHub
Open Graph Title: Table: Add indeterminate checkbox state support for select-all header · Issue #12404 · patternfly/patternfly-react
X Title: Table: Add indeterminate checkbox state support for select-all header · Issue #12404 · patternfly/patternfly-react
Description: What is the issue? PatternFly's Table (and DataView Table) components do not support indeterminate checkbox state for the select-all header checkbox, despite this being recommended in the PatternFly bulk selection design guidelines. Expe...
Open Graph Description: What is the issue? PatternFly's Table (and DataView Table) components do not support indeterminate checkbox state for the select-all header checkbox, despite this being recommended in the PatternFl...
X Description: What is the issue? PatternFly's Table (and DataView Table) components do not support indeterminate checkbox state for the select-all header checkbox, despite this being recommended in the Patte...
Opengraph URL: https://github.com/patternfly/patternfly-react/issues/12404
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Table: Add indeterminate checkbox state support for select-all header","articleBody":"### What is the issue?\n\nPatternFly's Table (and DataView Table) components do not support indeterminate checkbox state for the select-all header checkbox, despite this being recommended in the [PatternFly bulk selection design guidelines](https://www.patternfly.org/patterns/bulk-selection/).\n\n**Expected behavior:**\nThe select-all checkbox in the table header should support three states:\n\n- **Unchecked** - no items selected\n\n- **Indeterminate** (dash/minus icon) - some items selected\n\n- **Checked** - all items selected\n\n**Current behavior:**\nThe `ThSelectType` interface only supports `isSelected: boolean`, which means the checkbox can only be checked or unchecked. When some (but not all) items are selected, the checkbox appears unchecked, which doesn't properly reflect the selection state to users.\n\n### Steps to reproduce\n\n1. Create a table with selectable rows using the `select` prop on `Th`\n2. Select some (but not all) rows\n3. Observe that the header checkbox remains unchecked, even though some items are selected\n\n### Code example\n\n```typescript\n// Current interface (v6.4.2)\nexport interface ThSelectType {\n onSelect?: OnSelect;\n isSelected: boolean; // Only supports true/false, no indeterminate\n isHeaderSelectDisabled?: boolean;\n isDisabled?: boolean;\n props?: any;\n}\n```\n\n### Proposed solution\n\nAdd support for indeterminate state to `ThSelectType`:\n\n```typescript\nexport interface ThSelectType {\n onSelect?: OnSelect;\n isSelected: boolean;\n isIndeterminate?: boolean; // NEW: Support for partial selection state\n isHeaderSelectDisabled?: boolean;\n isDisabled?: boolean;\n props?: any;\n}\n```\n\nThe implementation would need to:\n\n4. Update the `ThSelectType` interface to include `isIndeterminate?: boolean`\n5. Update the `selectable` decorator to pass indeterminate state to the checkbox\n6. Update `SelectColumn` to set the checkbox's `indeterminate` property via ref\n\n### Related issues\n\n- #3648 - Original request (closed as wontfix due to BulkSelect recommendation)\n\n- #3909 - PR implementing this feature (closed)\n\n### Why this is still needed\n\nWhile BulkSelect in the toolbar is the recommended pattern, there are valid use cases for table-only selection:\n\n7. Tables without toolbars\n8. Compact UIs where toolbar space is limited\n9. Consistency with PatternFly design guidelines that show indeterminate state for table headers\n\n### Product and version\n\n- @patternfly/react-table: 6.4.2\n\n- User project: OpenShift Console (using PatternFly DataView)\n\n### Type\n\nEnhancement\n\n---\n\n**Jira Issue:** [PF-4099](https://redhat.atlassian.net/browse/PF-4099)","author":{"url":"https://github.com/rhamilto","@type":"Person","name":"rhamilto"},"datePublished":"2026-05-01T12:51:25Z","url":"https://github.com/patternfly/patternfly-react/issues/12404"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3773fcd7-c900-0770-2bb0-ac45fae9fab9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE84:10531B:2207F2:2B7328:6B00FEC4 |
| html-safe-nonce | d92dce628a7eaca35bd1ffa69e3d7ad80eb413c8d623f91bbf6f79c4309a6c26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTg0OjEwNTMxQjoyMjA3RjI6MkI3MzI4OjZCMDBGRUM0IiwidmlzaXRvcl9pZCI6IjgyMjMyMjQxNzQzMjQyODUxMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aae60928e339345638bad0181c7539d9ad4918352ee58042b36d3039c0f71581 |
| hovercard-subject-tag | issue:4364442359 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/patternfly/patternfly-react/12404/issue_layout |
| twitter:image | https://opengraph.githubassets.com/302a10d47f627a59db190586cffabc4e8be40f58cc85e4481acfed89c078d905/patternfly/patternfly-react/issues/12404 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/302a10d47f627a59db190586cffabc4e8be40f58cc85e4481acfed89c078d905/patternfly/patternfly-react/issues/12404 |
| og:image:alt | What is the issue? PatternFly's Table (and DataView Table) components do not support indeterminate checkbox state for the select-all header checkbox, despite this being recommended in the PatternFl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rhamilto |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/patternfly/patternfly-react git https://github.com/patternfly/patternfly-react.git |
| octolytics-dimension-user_id | 6391110 |
| octolytics-dimension-user_login | patternfly |
| octolytics-dimension-repository_id | 84372347 |
| octolytics-dimension-repository_nwo | patternfly/patternfly-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84372347 |
| octolytics-dimension-repository_network_root_nwo | patternfly/patternfly-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width