diff --git a/packages/react/src/components/DataTable/TableExpandHeader.tsx b/packages/react/src/components/DataTable/TableExpandHeader.tsx index 435a7c14ab01..fa0a90afd859 100644 --- a/packages/react/src/components/DataTable/TableExpandHeader.tsx +++ b/packages/react/src/components/DataTable/TableExpandHeader.tsx @@ -31,7 +31,7 @@ type TableExpandHeaderPropsBase = { * Specify the string read by a voice reader when the expand trigger is * focused */ - ['aria-label']: string; + ['aria-label']?: string; /** * @deprecated The enableExpando prop is being replaced by `enableToggle` @@ -150,7 +150,7 @@ TableExpandHeader.propTypes = { className: PropTypes.string, /** - * The enableExpando prop is being replaced by enableToggle + * The enableExpando prop is being replaced by TableExpandHeader */ enableExpando: deprecate( PropTypes.bool, diff --git a/packages/react/src/components/DataTable/__tests__/TableExpandHeader-test.js b/packages/react/src/components/DataTable/__tests__/TableExpandHeader-test.js index ebbe56cc1a67..c389444a67ff 100644 --- a/packages/react/src/components/DataTable/__tests__/TableExpandHeader-test.js +++ b/packages/react/src/components/DataTable/__tests__/TableExpandHeader-test.js @@ -31,7 +31,7 @@ describe('TableExpandHeader', () => { { expect(container).toMatchSnapshot(); }); - it('should respect ariaLabel prop', () => { + it('should respect aria-label prop', () => { render( - +