diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 3150a9863234..19f6c2a50818 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -3341,6 +3341,9 @@ Map { "role": Object { "type": "string", }, + "tabIndex": Object { + "type": "number", + }, }, "render": [Function], }, @@ -6201,6 +6204,9 @@ Map { "className": Object { "type": "string", }, + "tabIndex": Object { + "type": "number", + }, }, "render": [Function], }, diff --git a/packages/react/src/components/UIShell/HeaderMenuItem.js b/packages/react/src/components/UIShell/HeaderMenuItem.js index 408f2f2b6642..aa82642ae65e 100644 --- a/packages/react/src/components/UIShell/HeaderMenuItem.js +++ b/packages/react/src/components/UIShell/HeaderMenuItem.js @@ -18,6 +18,7 @@ const HeaderMenuItem = React.forwardRef(function HeaderMenuItem( 'aria-current': ariaCurrent, children, role, + tabIndex = 0, ...rest }, ref @@ -38,7 +39,7 @@ const HeaderMenuItem = React.forwardRef(function HeaderMenuItem( aria-current={ariaCurrent} className={linkClassName} ref={ref} - tabIndex={0}> + tabIndex={tabIndex}> {children} @@ -74,6 +75,11 @@ HeaderMenuItem.propTypes = { * `