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

Updates TabNav docs and adds TabPanel docs #468

Merged
merged 3 commits into from Apr 18, 2023
Merged

Conversation

mperrotti
Copy link
Contributor

The previous TabNav docs contained guidance that was intended for TabPanels.

@mperrotti mperrotti requested a review from a team as a code owner April 13, 2023 19:35
@mperrotti
Copy link
Contributor Author

If @ericwbailey confirms that arrow keys should not move focus or change the active tab in a TabNav, we should create an issue to fix the @primer/react implementation.

@mperrotti mperrotti temporarily deployed to github-pages April 13, 2023 21:11 — with GitHub Actions Inactive
Copy link
Contributor

@ericwbailey ericwbailey left a comment

Choose a reason for hiding this comment

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

@mperrotti Confirming that arrow keys should not factor into TabNav.

Also added a suggestion and a question. Otherwise this looks good to me!

content/components/tab-panels.mdx Outdated Show resolved Hide resolved
A tab nav is used to organize related content into different views within the same context.
A tab nav lets users navigate between related views in the same context. Each "tab" links to a different view that is shown when a user selects a tab.

A tab nav is always a set of links, and each tab should have a unique URL.
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think of having a sentence here that includes a link to tab panels, and the tab panels usage section having a sentence that includes a link to tab nav?

My thinking is it could help pre-empt folks who don't know the difference between the two components' use cases and provides a link for them to self-serve.

mperrotti and others added 2 commits April 17, 2023 13:36
Co-authored-by: Eric Bailey <ericwbailey@users.noreply.github.com>
@mperrotti mperrotti temporarily deployed to github-pages April 17, 2023 19:04 — with GitHub Actions Inactive
@mperrotti mperrotti merged commit f1839d5 into main Apr 18, 2023
4 checks passed
@mperrotti mperrotti deleted the mp/tabby-components branch April 18, 2023 15:57
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.

None yet

2 participants