Skip to content

Commit

Permalink
Merge pull request #14441 from Alhajras/issue/fix-the-tree-checkbox-c…
Browse files Browse the repository at this point in the history
…ss-issue-and-make-it-clearer-when-it-is-disabled#14251

Fix the tree checkbox css issue and make it clearer when it is disabled
  • Loading branch information
cetincakiroglu authored Jan 4, 2024
2 parents ad7e213 + 0259b3f commit ce823cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ import {
<ng-template *ngTemplateOutlet="tree.togglerIconTemplate; context: { $implicit: node.expanded }"></ng-template>
</span>
</button>
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-disabled': node.selectable === false }" *ngIf="tree.selectionMode == 'checkbox'" aria-hidden="true">
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-disabled p-disabled': node.selectable === false }" *ngIf="tree.selectionMode == 'checkbox'" aria-hidden="true">
<div class="p-checkbox-box" [ngClass]="{ 'p-highlight': isSelected(), 'p-indeterminate': node.partialSelected }" role="checkbox">
<ng-container *ngIf="!tree.checkboxIconTemplate">
<CheckIcon *ngIf="!node.partialSelected && isSelected()" [styleClass]="'p-checkbox-icon'" />
Expand Down

0 comments on commit ce823cd

Please sign in to comment.