Skip to content

Commit 6b6a063

Browse files
authored
Merge pull request #510 from cal-smith/position
fix(table): expandable row classes and structure
2 parents 12f9749 + 02db1f8 commit 6b6a063

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/table/expanded-row-hover.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import {
99
export class ExpandedRowHover {
1010
@HostListener("mouseenter", ["$event"])
1111
addHoverClass(event) {
12-
event.target.previousElementSibling.classList.add("bx--expandable-row--hover-v2");
12+
event.target.previousElementSibling.classList.add("bx--expandable-row--hover");
1313
}
1414

1515
@HostListener("mouseleave", ["$event"])
1616
removeHoverClass(event) {
17-
event.target.previousElementSibling.classList.remove("bx--expandable-row--hover-v2");
17+
event.target.previousElementSibling.classList.remove("bx--expandable-row--hover");
1818
}
1919
}

src/table/table.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ import { I18n } from "./../i18n/i18n.module";
179179
<thead>
180180
<tr>
181181
<th
182+
class="bx--table-expand"
182183
*ngIf="model.hasExpandableRows()"
183184
[ibmDataGridFocus]="isDataGrid"
184185
[(columnIndex)]="columnIndex"
@@ -358,7 +359,7 @@ import { I18n } from "./../i18n/i18n.module";
358359
class="bx--table-expand__button"
359360
[attr.aria-label]="expandButtonAriaLabel | async"
360361
(click)="model.expandRow(i, !model.rowsExpanded[i])">
361-
<ibm-icon-chevron-right16 class="bx--table-expand__svg"></ibm-icon-chevron-right16>
362+
<ibm-icon-chevron-right16 innerClass="bx--table-expand__svg"></ibm-icon-chevron-right16>
362363
</button>
363364
</td>
364365
<td

0 commit comments

Comments
 (0)