diff --git a/src/components/basic_table/basic_table.tsx b/src/components/basic_table/basic_table.tsx index f83b1990583..2f33233c68a 100644 --- a/src/components/basic_table/basic_table.tsx +++ b/src/components/basic_table/basic_table.tsx @@ -528,6 +528,7 @@ export class EuiBasicTable extends Component< } tableId = htmlIdGenerator('__table')(); + selectAllCheckboxId = htmlIdGenerator('_selection_column-checkbox')(); render() { const { @@ -762,7 +763,7 @@ export class EuiBasicTable extends Component< {(selectAllRows: string) => ( { @@ -57,12 +57,12 @@ export const DefaultItemAction = ({ let button; const actionContent = typeof action.name === 'function' ? action.name(item) : action.name; + const ariaLabelId = useGeneratedHtmlId(); if (action.type === 'icon') { if (!icon) { throw new Error(`Cannot render item action [${action.name}]. It is configured to render as an icon but no icon is provided. Make sure to set the 'icon' property of the action`); } - const ariaLabelId = htmlIdGenerator()(); button = ( <>