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";
13
13
import { useSticky } from "./sticky" ;
14
14
import { SortOrder , TableCellContent } from "./TableCellContent" ;
15
15
16
- export type TableCellElement =
17
- | HTMLTableDataCellElement
18
- | HTMLTableHeaderCellElement ;
19
-
20
16
export type TableCellAttributes = Omit <
21
- | TdHTMLAttributes < HTMLTableDataCellElement >
22
- | ThHTMLAttributes < HTMLTableHeaderCellElement > ,
17
+ | TdHTMLAttributes < HTMLTableCellElement >
18
+ | ThHTMLAttributes < HTMLTableCellElement > ,
23
19
"colSpan" | "scope"
24
20
> ;
25
21
@@ -124,7 +120,7 @@ const block = bem("rmd-table-cell");
124
120
* it is invalid to have a `<th>` without any readable content for screen
125
121
* readers.
126
122
*/
127
- export const TableCell = forwardRef < TableCellElement , TableCellProps > (
123
+ export const TableCell = forwardRef < HTMLTableCellElement , TableCellProps > (
128
124
function TableCell (
129
125
{
130
126
"aria-sort" : sortOrder ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type WantedCheckboxProps =
21
21
22
22
export interface TableCheckboxProps
23
23
extends Omit <
24
- TdHTMLAttributes < HTMLTableDataCellElement > ,
24
+ TdHTMLAttributes < HTMLTableCellElement > ,
25
25
"onChange" | "scope" | "aria-sort"
26
26
> ,
27
27
Pick < CheckboxProps , WantedCheckboxProps > ,
@@ -80,7 +80,7 @@ const DEFAULT_ARIA_LABEL = "Toggle Row Selection";
80
80
* it's more for selection.
81
81
*/
82
82
export const TableCheckbox = forwardRef <
83
- HTMLTableDataCellElement ,
83
+ HTMLTableCellElement ,
84
84
TableCheckboxProps
85
85
> ( function TableCheckbox (
86
86
{
You can’t perform that action at this time.
0 commit comments