-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix(FormExample): Update fields ID and add success indicator by default when field required #13568
fix(FormExample): Update fields ID and add success indicator by default when field required #13568
Conversation
…ult when field required
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Potential regressions comparing to master
Perf comparison
Perf tests with no regressions
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: a8748bcd3616a3a7c453f5bae0960f8efb82a19a (build) |
@jurokapsiar @layershifter @pompomon @mnajdova @miroslavstastny As agreed, in this PR |
In my opinion it would look awkward if all fields which are not required will have the success indicator.. Usually on forms, the success indicator is shown after you successfully filled the form field (which in my opinion means, that the field either was required, or required some special validation - maybe it is an email or phone number) However this is just my opinion, and we should definitely check the designs (maybe it should be shown only if the input field was focused, or the value was initialized..) |
But it's not what happening, the success indicator is only being shown if the field was required... The question here is because in several examples we were using required field ( Like in the input inside toolbar ) and having the indicator by default in required fields will generate regression because the input get bigger. Removing the required will generate regression because will remove |
...fluentui/docs/src/examples/components/Form/Usage/FormExampleErrorAndSuccessful.shorthand.tsx
Show resolved
Hide resolved
packages/fluentui/docs/src/examples/components/Form/Usage/FormExampleErrorAndSuccessful.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Input/Input.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
packages/fluentui/react-northstar/src/components/Form/FormField.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Form/FormField.tsx
Outdated
Show resolved
Hide resolved
…d.tsx Co-authored-by: Marija Najdova <mnajdova@gmail.com>
…i into fix/form-example
packages/fluentui/react-northstar/src/components/Form/FormField.tsx
Outdated
Show resolved
Hide resolved
…d.tsx Co-authored-by: Marija Najdova <mnajdova@gmail.com>
packages/fluentui/react-northstar/src/components/Input/Input.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
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.
Looks good, please add changelog entry before merging
Pull request checklist
$ yarn change
BREAKING CHANGES
This PR updates input/label ID's to correctly match and add
successIndicator
by default when the field is required.Inputs
when required will by default show success indicator when fulfilled, to prevent it and have the previously behavior just use<Input required showSuccessIndicator={false} />
orFocus areas to test
(optional)