-
Notifications
You must be signed in to change notification settings - Fork 217
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
mannycarrera4
wants to merge
49
commits into
Workday:prerelease/major
Choose a base branch
from
mannycarrera4:mc-ff-example
base: prerelease/major
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
chore: Add FormFieldGroup component and density example #2865
mannycarrera4
wants to merge
49
commits into
Workday:prerelease/major
from
mannycarrera4:mc-ff-example
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Workday/canvas-kit Run #7727
Run Properties:
|
Project |
Workday/canvas-kit
|
Branch Review |
mc-ff-example
|
Run status |
Passed #7727
|
Run duration | 03m 09s |
Commit |
9c31b947ab ℹ️: Merge 844c95eacf6a0f7e359ecbc5f5805772b6675f23 into bd882e1c4c3a8bb73ffcf74ce3da...
|
Committer | Manuel Carrera |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
15
|
Pending |
16
|
Skipped |
0
|
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
|
…as-kit into mc-ff-example
modules/preview-react/form-field/stories/examples/AllFields.tsx
Outdated
Show resolved
Hide resolved
modules/preview-react/form-field/stories/examples/GroupedInputs.tsx
Outdated
Show resolved
Hide resolved
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
changed the title
chore: Add FormFieldGroup component and density example and Promote FormField Preview
chore: Add FormFieldGroup component and density example
Aug 29, 2024
RayRedGoose
reviewed
Aug 30, 2024
modules/preview-react/form-field/stories/examples/GroupedInputs.tsx
Outdated
Show resolved
Hide resolved
RayRedGoose
reviewed
Aug 30, 2024
modules/preview-react/form-field/stories/examples/GroupedInputs.tsx
Outdated
Show resolved
Hide resolved
RayRedGoose
reviewed
Aug 30, 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' | ||
: ''} |
There was a problem hiding this comment.
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
…s.tsx Co-authored-by: Raisa Primerova <48605821+RayRedGoose@users.noreply.github.com>
…s.tsx Co-authored-by: Raisa Primerova <48605821+RayRedGoose@users.noreply.github.com>
…as-kit into mc-ff-example
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 afieldset
andlegend
. Its API matches theFormField
API where you haveerror
prop as well asid
andisRequired
.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
ready for review
has been added to PRFor the Reviewer
Where Should the Reviewer Start?
Areas for Feedback? (optional)
Testing Manually
Screenshots or GIFs (if applicable)
Thank You Gif (optional)