File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,9 @@ import { useTableFooter } from "./footer";
1313import { useSticky } from "./sticky" ;
1414import { SortOrder , TableCellContent } from "./TableCellContent" ;
1515
16- export type TableCellElement =
17- | HTMLTableDataCellElement
18- | HTMLTableHeaderCellElement ;
19-
2016export type TableCellAttributes = Omit <
21- | TdHTMLAttributes < HTMLTableDataCellElement >
22- | ThHTMLAttributes < HTMLTableHeaderCellElement > ,
17+ | TdHTMLAttributes < HTMLTableCellElement >
18+ | ThHTMLAttributes < HTMLTableCellElement > ,
2319 "colSpan" | "scope"
2420> ;
2521
@@ -124,7 +120,7 @@ const block = bem("rmd-table-cell");
124120 * it is invalid to have a `<th>` without any readable content for screen
125121 * readers.
126122 */
127- export const TableCell = forwardRef < TableCellElement , TableCellProps > (
123+ export const TableCell = forwardRef < HTMLTableCellElement , TableCellProps > (
128124 function TableCell (
129125 {
130126 "aria-sort" : sortOrder ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type WantedCheckboxProps =
2121
2222export interface TableCheckboxProps
2323 extends Omit <
24- TdHTMLAttributes < HTMLTableDataCellElement > ,
24+ TdHTMLAttributes < HTMLTableCellElement > ,
2525 "onChange" | "scope" | "aria-sort"
2626 > ,
2727 Pick < CheckboxProps , WantedCheckboxProps > ,
@@ -80,7 +80,7 @@ const DEFAULT_ARIA_LABEL = "Toggle Row Selection";
8080 * it's more for selection.
8181 */
8282export const TableCheckbox = forwardRef <
83- HTMLTableDataCellElement ,
83+ HTMLTableCellElement ,
8484 TableCheckboxProps
8585> ( function TableCheckbox (
8686 {
You can’t perform that action at this time.
0 commit comments