Skip to content

fix(tree-grid): show disabled checkboxes for non-selectable rows - #1333

Open
teodosiah wants to merge 2 commits into
vnextfrom
thristodorova/fix-1323
Open

teodosiah wants to merge 2 commits into
vnextfrom
thristodorova/fix-1323

Conversation

@teodosiah

Copy link
Copy Markdown
Contributor

Closes #1323

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the update to visually disable selection checkboxes for ineligible employees.

No open issues 🎉

What changed in this PR

Updates the Tree Grid Conditional Selection demo to visually disable checkboxes for non-selectable rows, addressing #1323 while preserving the existing rule that only employees on PTO can be selected.

Changes:

  • Adds a custom row-selector checkbox template reflecting selection state and employee eligibility.
  • Styles the checkboxes and leaves pointer handling to the grid; corrects the comment describing the selection rule.
File Description
samples/​grids/​tree-grid/​conditional-row-selectors/​src/​index.ts Registers and renders custom checkboxes with the appropriate disabled state.
samples/​grids/​tree-grid/​conditional-row-selectors/​src/​index.css Adds checkbox padding and disables direct pointer interaction.

Review effort: Balanced


igc-checkbox.row-selector {
padding: 2px;
pointer-events: none;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is changing the pointer of the enabled checkboxes as well. The disabled checkbox has it built-in.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tree Grid Conditional Selection demo: Disabled checkbox appearance differ from Angular

3 participants