Skip to content

Commit

Permalink
EuiTableHeaderCellCheckbox convert to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo committed May 29, 2019
1 parent e89d4b2 commit d8935e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`EuiTableHeaderCellCheckbox is rendered 1`] = `
aria-label="aria-label"
class="euiTableHeaderCellCheckbox testClass1 testClass2"
data-test-subj="test subject string"
scope="col"
>
<div
class="euiTableCellContent"
Expand Down
4 changes: 2 additions & 2 deletions src/components/table/table_header_cell_checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export const EuiTableHeaderCellCheckbox: FunctionComponent<
CommonProps &
TdHTMLAttributes<HTMLTableCellElement> &
EuiTableHeaderCellCheckboxProps
> = ({ children, className, ...rest }) => {
> = ({ children, className, scope = 'col', ...rest }) => {
const classes = classNames('euiTableHeaderCellCheckbox', className);

return (
<th className={classes} {...rest}>
<th className={classes} {...rest} scope={scope}>
<div className="euiTableCellContent">{children}</div>
</th>
);
Expand Down

0 comments on commit d8935e3

Please sign in to comment.