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 hasBorder prop to pillar and increase border radius on Card #880

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

rezrah
Copy link
Collaborator

@rezrah rezrah commented Jan 7, 2025

Summary

Closes #816
Closes #874
Part of https://github.com/github/primer/issues/4601

🔗 Docs
🔗 Storybook

List of notable changes:

  • Increases card border radius to 24px
  • Adds hasBorder prop to Pillar per design

What should reviewers focus on?

Steps to test:

🔗 Documentation
🔗 Storybook example

Supporting resources (related issues, external links, etc):

Contributor checklist:

  • All new and existing CI checks pass
  • Tests prove that the feature works and covers both happy and unhappy paths
  • Any drop in coverage, breaking changes or regressions have been documented above
  • UI Changes contain new visual snapshots (generated by adding update snapshots label to the PR)
  • All developer debugging and non-functional logging has been removed
  • Related issues have been referenced in the PR description

Reviewer checklist:

  • Check that pull request and proposed changes adhere to our contribution guidelines and code of conduct
  • Check that tests prove the feature works and covers both happy and unhappy paths
  • Check that there aren't other open Pull Requests for the same update/change

Screenshots:

Please try to provide before and after screenshots or videos

Card

Before After

image

image

Pillar

Before After

image

Copy link

changeset-bot bot commented Jan 7, 2025

🦋 Changeset detected

Latest commit: 6a64362

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

This PR includes changesets to release 6 packages
Name Type
@primer/react-brand Patch
@primer/brand-primitives Patch
@primer/brand-e2e Patch
@primer/brand-fonts Patch
@primer/brand-config Patch
@primer/brand-storybook 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

Copy link
Contributor

github-actions bot commented Jan 7, 2025

🟢 No design token changes found

@@ -67,6 +67,20 @@ You can add an image to enhance the visual context.
</Pillar>
```

### Border

You can add an optional border to create a visual boundary around the pillar content.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jesussandreas Is this okay or do you want to elaborate on why / when users should apply a border?

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be fine for the React docs, but we may want to update the interface guidelines to include some guidance on when to apply borders. We can address this as a follow-up.

Copy link
Contributor

github-actions bot commented Jan 7, 2025

🟢 No visual differences found

Our visual comparison tests did not find any differences in the UI.

Copy link
Contributor

@joshfarrant joshfarrant left a comment

Choose a reason for hiding this comment

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

LGTM!

.changeset/gorgeous-frogs-buy.md Outdated Show resolved Hide resolved
Copy link
Contributor

@danielguillan danielguillan left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -67,6 +67,20 @@ You can add an image to enhance the visual context.
</Pillar>
```

### Border

You can add an optional border to create a visual boundary around the pillar content.
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be fine for the React docs, but we may want to update the interface guidelines to include some guidance on when to apply borders. We can address this as a follow-up.

@rezrah rezrah merged commit bfe4061 into main Jan 8, 2025
15 of 17 checks passed
@rezrah rezrah deleted the rezrah/card-hasborder branch January 8, 2025 16:07
@primer-css primer-css mentioned this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants