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

Add option to exclude spacer from flat tree views #3089

Merged
merged 5 commits into from
Mar 30, 2023

Conversation

mperrotti
Copy link
Contributor

Closes https://github.com/github/primer/issues/1935

Screenshots

Screenshot 2023-03-29 at 4 17 55 PM

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@mperrotti mperrotti requested review from a team and langermank March 29, 2023 20:18
@changeset-bot
Copy link

changeset-bot bot commented Mar 29, 2023

🦋 Changeset detected

Latest commit: bba0a03

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 Minor

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 29, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 95.07 KB (+0.04% 🔺)
dist/browser.umd.js 95.61 KB (+0.04% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-3089 March 29, 2023 20:25 Inactive
@primer primer bot temporarily deployed to github-pages March 29, 2023 20:26 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3089 March 29, 2023 20:26 Inactive
@colebemis colebemis self-requested a review March 29, 2023 21:39
@mperrotti mperrotti temporarily deployed to github-pages March 29, 2023 22:33 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3089 March 29, 2023 22:34 Inactive
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 good, @mperrotti! The only nitpick I have is that I'm not crazy about the prop name preventIndents but I don't have many ideas for better names. Maybe flat?

<TreeView flat>
  <TreeView.Item>...</TreeView.Item>
</TreeView>

IMO that looks a little clean. An added bonus is that it might discourage people from using the prop on trees that aren't flat.

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