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

feat(TreeView): add label prop for Leading and Trailing Visual #2434

Merged
merged 9 commits into from
Oct 17, 2022

Conversation

joshblack
Copy link
Member

This PR adds in support for describing a TreeView.Item with aria-describedby and TreeView.LeadingItem and TreeView.TrailingItem. Each visual slot takes in an optional label prop which can be used to describe the overall TreeView.Item.

Background: https://github.com/github/primer/blob/main/apis/tree-view-api.md#leading-and-trailing-visuals

@joshblack joshblack requested review from a team and rezrah October 14, 2022 21:01
@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2022

🦋 Changeset detected

Latest commit: 26d7dbe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@joshblack joshblack requested review from colebemis and removed request for rezrah October 14, 2022 21:01
@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 77.92 KB (0%)
dist/browser.umd.js 78.57 KB (0%)

joshblack and others added 2 commits October 14, 2022 16:22
Co-authored-by: Cole Bemis <colebemis@github.com>
Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

Looks great! Just left one question: #2434 (comment)

@joshblack joshblack temporarily deployed to github-pages October 17, 2022 18:11 Inactive
@joshblack joshblack merged commit 57c3b4d into main Oct 17, 2022
@joshblack joshblack deleted the feat/add-labels-for-trailing-leading branch October 17, 2022 18:53
@primer-css primer-css mentioned this pull request Oct 17, 2022
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