Skip to content

Commit

Permalink
refactor(grid-base): rename headerCheckboxAriaLabel to headSelectorBa…
Browse files Browse the repository at this point in the history
…seAriaLabel
  • Loading branch information
jackofdiamond5 committed Aug 23, 2019
1 parent f62b46f commit 763c83d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4733,10 +4733,10 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
/**
* @hidden
*/
get headerCheckboxAriaLabel() {
get headSelectorBaseAriaLabel() {
return this._filteringExpressionsTree.filteringOperands.length > 0 ?
this.headerCheckbox && this.selectionService.areAllRowSelected() ? 'Deselect all filtered' : 'Select all filtered' :
this.headerCheckbox && this.selectionService.areAllRowSelected() ? 'Deselect all' : 'Select all';
this.headSelectorBaseTemplate && this.selectionService.areAllRowSelected() ? 'Deselect all filtered' : 'Select all filtered' :
this.headSelectorBaseTemplate && this.selectionService.areAllRowSelected() ? 'Deselect all' : 'Select all';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
[ngStyle]="{'visibility': isMultiRowSelectionEnabled? 'visible' : 'hidden' }"
(click)="$event.preventDefault()"
[indeterminate]="selectionService.hasSomeRowSelected()"
[aria-label]="headerCheckboxAriaLabel"
[aria-label]="headSelectorBaseAriaLabel"
#headerCheckbox>
</igx-checkbox>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
[ngStyle]="{'visibility': isMultiRowSelectionEnabled? 'visible' : 'hidden' }"
(click)="$event.preventDefault()"
[indeterminate]="selectionService.hasSomeRowSelected()"
[aria-label]="headerCheckboxAriaLabel"
[aria-label]="headSelectorBaseAriaLabel"
#headerCheckbox>
</igx-checkbox>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
(click)="$event.preventDefault()"
disableRipple="true"
[indeterminate]="selectionService.hasSomeRowSelected()"
[aria-label]="headerCheckboxAriaLabel"
[aria-label]="headSelectorBaseAriaLabel"
#headerCheckbox>
</igx-checkbox>
</ng-template>
Expand Down

0 comments on commit 763c83d

Please sign in to comment.