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

chore: Add FormFieldGroup component and density example #2865

Open
wants to merge 49 commits into
base: prerelease/major
Choose a base branch
from

Conversation

mannycarrera4
Copy link
Contributor

@mannycarrera4 mannycarrera4 commented Aug 9, 2024

Summary

Fixes: #2805, #2806, #2820, #2807

Release Category

Components

Release Note

Add new FormFieldGroup component to use when grouping inputs like checkboxes and radio inputs that need to be associated to one another. This component renders a fieldset and legend. Its API matches the FormField API where you have error prop as well as id and isRequired.

We've added data attributes to Select so that you can customize styles more easily on elements that are not surfaced by the compound component API.


Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

Copy link

cypress bot commented Aug 9, 2024

Workday/canvas-kit    Run #7727

Run Properties:  status check passed Passed #7727  •  git commit 9c31b947ab ℹ️: Merge 844c95eacf6a0f7e359ecbc5f5805772b6675f23 into bd882e1c4c3a8bb73ffcf74ce3da...
Project Workday/canvas-kit
Branch Review mc-ff-example
Run status status check passed Passed #7727
Run duration 03m 09s
Commit git commit 9c31b947ab ℹ️: Merge 844c95eacf6a0f7e359ecbc5f5805772b6675f23 into bd882e1c4c3a8bb73ffcf74ce3da...
Committer Manuel Carrera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 15
Tests that did not run due to a developer annotating a test with .skip  Pending 16
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 854
View all changes introduced in this branch ↗︎
UI Coverage  21.64%
  Untested elements 1783  
  Tested elements 490  
Accessibility  99.21%
  Failed rules  5 critical   5 serious   0 moderate   2 minor
  Failed elements 229  

@mannycarrera4 mannycarrera4 marked this pull request as ready for review August 15, 2024 22:36
@mannycarrera4 mannycarrera4 added the ready for review Code is ready for review label Aug 19, 2024
@mannycarrera4 mannycarrera4 removed the ready for review Code is ready for review label Aug 29, 2024
@mannycarrera4 mannycarrera4 changed the title chore: Add FormFieldGroup component and density example chore: Add FormFieldGroup component and density example and Promote FormField Preview Aug 29, 2024
@mannycarrera4 mannycarrera4 changed the title chore: Add FormFieldGroup component and density example and Promote FormField Preview chore: Add FormFieldGroup component and density example Aug 29, 2024
@mannycarrera4 mannycarrera4 added the ready for review Code is ready for review label Aug 29, 2024
Comment on lines +139 to +145
{error && radioError
? 'At least one topping and crust selection is required'
: error
? 'You must choose at least one topping'
: radioError
? 'You must choose a crust'
: ''}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not setting error message instead having error and radioError? It will be less validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Code is ready for review
Projects
Status: 👀 In review
3 participants