Skip to content

Commit 00e40cc

Browse files
Merge pull request #35 from glints-dev/feat/indextable-checkbox-class
IndexTable: checkbox table cell class
2 parents 73dad0b + f804c9c commit 00e40cc

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.changeset/curly-cows-push.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris-glints': minor
3+
---
4+
5+
IndexTable checkbox table cell class

polaris-react/src/components/IndexTable/components/Row/Row.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ export interface RowProps {
2424
onNavigation?(id: string): void;
2525
onClick?(): void;
2626
checkbox?: React.ReactNode;
27-
onMouseOverCheckboxCell?(): void;
28-
onMouseLeaveCheckboxCell?(): void;
2927
}
3028

3129
export const Row = memo(function Row({
@@ -39,8 +37,6 @@ export const Row = memo(function Row({
3937
onNavigation,
4038
onClick,
4139
checkbox,
42-
onMouseOverCheckboxCell,
43-
onMouseLeaveCheckboxCell,
4440
}: RowProps) {
4541
const {selectable, selectMode, condensed} = useIndexRow();
4642
const onSelectionChange = useIndexSelectionChange();
@@ -147,11 +143,7 @@ export const Row = memo(function Row({
147143
const RowWrapper = condensed ? 'li' : 'tr';
148144

149145
const checkboxMarkup = selectable ? (
150-
<td
151-
className="Polaris-IndexTable__TableCell"
152-
onMouseOver={onMouseOverCheckboxCell}
153-
onMouseLeave={onMouseLeaveCheckboxCell}
154-
>
146+
<td className="Polaris-IndexTable__TableCell Polaris-IndexTable__TableCellCheckbox">
155147
{checkbox}
156148
</td>
157149
) : null;

0 commit comments

Comments
 (0)