Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[react-nav-preview](feat): Allowing Nav to be navigable by tabbing #33232

Merged
merged 8 commits into from
Nov 8, 2024

Conversation

mltejera
Copy link
Contributor

@mltejera mltejera commented Nov 7, 2024

This pull request introduces a new feature to the NavDrawer component by exposing a tabbable prop, allowing consumers to enable both tab and arrow navigation. Additionally, it includes some import adjustments to accommodate this new feature.

New Feature:

  • Added tabbable prop to NavDrawer to enable both tab and arrow navigation. (packages/react-components/react-nav-preview/library/src/components/NavDrawer/NavDrawer.types.ts)
  • Updated useNavDrawer_unstable hook to utilize the tabbable prop for navigation. (packages/react-components/react-nav-preview/library/src/components/NavDrawer/useNavDrawer.ts)
  • Modified Controlled story to demonstrate the use of the tabbable prop. (packages/react-components/react-nav-preview/stories/src/NavDrawer/Controlled.stories.tsx)

Import Adjustments:

  • Added TabsterDOMAttribute import to support the new tabbable prop. (packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md)
  • Updated NavDrawerProps type to include tabsterDomAttribute. (packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md)

@mltejera mltejera requested review from a team as code owners November 7, 2024 21:37
Copy link

github-actions bot commented Nov 7, 2024

📊 Bundle size report

✅ No changes found

Copy link

github-actions bot commented Nov 7, 2024

Pull request demo site: URL

Copy link
Contributor

@Mitch-At-Work Mitch-At-Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor code nit, otherwise LGTM

@mltejera mltejera changed the title [react-nav-preview](feat): Exposing tabster props [react-nav-preview](feat): Allowing Nav to be navigable by tabbing Nov 7, 2024
@mltejera mltejera merged commit 424835a into master Nov 8, 2024
18 checks passed
@mltejera mltejera deleted the user/matejera/pass-tabster-to-nav branch January 14, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants