Skip to content

Commit 9e2b56c

Browse files
committed
feat: add row highlighting to table selections
1 parent 644d6f2 commit 9e2b56c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

projects/components/src/table/table.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $header-height: 32px;
4848
}
4949

5050
&.selected-row {
51-
background: $gray-1;
51+
background: $blue-1;
5252
border-bottom: 1px solid $blue-2;
5353
border-top: 1px solid $blue-2;
5454

projects/components/src/table/table.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,6 @@ export class TableComponent
678678

679679
public shouldHighlightRowAsSelection(row: StatefulTableRow): boolean {
680680
return (
681-
this.selectionMode !== TableSelectionMode.Multiple &&
682681
this.selections !== undefined &&
683682
this.selections.find(selection => TableCdkRowUtil.isEqualExceptState(selection, row)) !== undefined
684683
);

0 commit comments

Comments
 (0)