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

Standalone form control #1821

Merged
merged 11 commits into from
Feb 14, 2023
Merged

Standalone form control #1821

merged 11 commits into from
Feb 14, 2023

Conversation

camertron
Copy link
Contributor

@camertron camertron commented Feb 8, 2023

Description

Mostly for parity with primer/react, this PR adds a FormControl component. It wraps arbitrary content with a label, optional caption, and optional validation message. Under normal circumstances, hubbers would use the Primer forms framework, which has its own version of FormControl. This component can be used outside of a forms context.

image

Integration

Does this change require any updates to code in production?

No.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@changeset-bot
Copy link

changeset-bot bot commented Feb 8, 2023

🦋 Changeset detected

Latest commit: 401b9ad

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

This PR includes changesets to release 1 package
Name Type
@primer/view-components 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

@camertron camertron temporarily deployed to review-pr-1821 February 8, 2023 23:49 — with GitHub Actions Inactive
@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Feb 8, 2023
@camertron camertron temporarily deployed to github-pages February 8, 2023 23:53 — with GitHub Actions Inactive
@camertron camertron temporarily deployed to review-pr-1821 February 11, 2023 00:11 — with GitHub Actions Inactive
@camertron camertron temporarily deployed to github-pages February 11, 2023 00:15 — with GitHub Actions Inactive
@camertron camertron marked this pull request as ready for review February 11, 2023 00:17
@camertron camertron requested review from a team and keithamus February 11, 2023 00:17
@camertron camertron temporarily deployed to review-pr-1821 February 13, 2023 18:14 — with GitHub Actions Inactive
@camertron camertron temporarily deployed to github-pages February 13, 2023 18:18 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

⚠️ Visual differences found

Our visual comparison tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review visual differences

@camertron camertron temporarily deployed to review-pr-1821 February 13, 2023 21:38 — with GitHub Actions Inactive
@camertron camertron temporarily deployed to github-pages February 13, 2023 21:43 — with GitHub Actions Inactive
@camertron camertron removed the request for review from keithamus February 13, 2023 23:46
Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

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

Fantastic ✨

.changeset/polite-turkeys-rush.md Outdated Show resolved Hide resolved
Co-authored-by: Jon Rohan <rohan@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants