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

docs(form): add migration guide #243

Merged
merged 3 commits into from
Aug 21, 2019
Merged

docs(form): add migration guide #243

merged 3 commits into from
Aug 21, 2019

Conversation

nylon22
Copy link
Member

@nylon22 nylon22 commented Aug 20, 2019

closes #238

@codecov
Copy link

codecov bot commented Aug 20, 2019

Codecov Report

Merging #243 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #243   +/-   ##
=======================================
  Coverage   91.55%   91.55%           
=======================================
  Files          83       83           
  Lines        1728     1728           
  Branches      433      433           
=======================================
  Hits         1582     1582           
  Misses        117      117           
  Partials       29       29

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6cbd114...d803ec1. Read the comment docs.

packages/form/MIGRATION.md Show resolved Hide resolved
@nylon22 nylon22 merged commit 2bcde9f into master Aug 21, 2019
@nylon22 nylon22 deleted the fix/238 branch August 21, 2019 15:29
initialValues={{ myInput: '' }}
validationSchema={yup.object().shape({ myInput: yup.string().isRequired(true, 'This field is required.') })}
>
<Input name="myInput" type="text" />
Copy link
Collaborator

@TheSharpieOne TheSharpieOne Aug 21, 2019

Choose a reason for hiding this comment

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

Should this be

  <Input
    name="myInput"
    type="text"
    required
  />

(making it kinda the same as the old way) for a11y? I'm not sure if the validationSchema is automatically added the HTML5 equivalent or not, but if not, we should show it with a11y as a11y shouldn't be an afterthought and the examples should show best practices.
It also helps keep the examples as equivalent as far as the output to the browser/user.

Similar for the ones before which involve pattern and required.

Copy link
Member Author

Choose a reason for hiding this comment

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

I like the idea. I created #245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create migration guide for availity-reactstrap-validation to @availity/form
4 participants