Skip to content

Commit d3b5d1f

Browse files
(Table): remove all the scope attributes
1 parent cf3dd66 commit d3b5d1f

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/scripts/Table.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const TableHeaderColumn: FC<TableHeaderColumnProps> = (props) => {
172172
);
173173

174174
return (
175-
<th {...pprops} className={oClassNames} scope='col' style={style}>
175+
<th {...pprops} className={oClassNames} style={style}>
176176
{sortable ? (
177177
<a
178178
onClick={(e) => {
@@ -223,7 +223,6 @@ export const TableRowColumn: FC<TableRowColumnProps> = (props) => {
223223
className: oClassNames,
224224
width,
225225
children,
226-
scope,
227226
...pprops
228227
} = props;
229228
const style: CSSProperties = {};
@@ -239,15 +238,11 @@ export const TableRowColumn: FC<TableRowColumnProps> = (props) => {
239238
children
240239
);
241240

242-
const CellComponent = scope === 'row' ? 'th' : 'td';
243-
const cellProps = {
244-
style,
245-
className: oClassNames,
246-
...pprops,
247-
...(scope === 'row' ? { scope: 'row' } : {}),
248-
};
249-
250-
return <CellComponent {...cellProps}>{cellContent}</CellComponent>;
241+
return (
242+
<td style={style} className={oClassNames} {...pprops}>
243+
{cellContent}
244+
</td>
245+
);
251246
};
252247

253248
/**

0 commit comments

Comments
 (0)