diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f800aa84e..ba787836d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - Fixed `Flex.Item` children prop type @mnajdova ([#1320](https://github.com/stardust-ui/react/pull/1320)) -- Fixed `Icon`'s color example to align with the latest color updates @mnajdova([#1336](https://github.com/stardust-ui/react/pull/1336)) +- Fixed `Icon`'s color example to align with the latest color updates @mnajdova ([#1336](https://github.com/stardust-ui/react/pull/1336)) +- Fixed `TreeTitle` - `tabIndex` prop should be camel case in behavior @sophieH29 ([#1345](https://github.com/stardust-ui/react/pull/1345)) ### Features - Add `selected`, `isFromKeyboard` props to `DropdownItem` @mnajdova ([#1299](https://github.com/stardust-ui/react/pull/1299)) diff --git a/packages/react/src/lib/accessibility/Behaviors/Tree/treeTitleBehavior.ts b/packages/react/src/lib/accessibility/Behaviors/Tree/treeTitleBehavior.ts index 44ab57daa4..1c6c18be70 100644 --- a/packages/react/src/lib/accessibility/Behaviors/Tree/treeTitleBehavior.ts +++ b/packages/react/src/lib/accessibility/Behaviors/Tree/treeTitleBehavior.ts @@ -11,7 +11,7 @@ const treeTitleBehavior: Accessibility = (props: any) => ({ attributes: { root: { ...(props.hasSubtree && { 'aria-expanded': props.open ? 'true' : 'false' }), - tabindex: 0, + tabIndex: 0, [IS_FOCUSABLE_ATTRIBUTE]: true, }, },