Skip to content

Commit

Permalink
Merge pull request #1724 from janinavelasco9/update-required-input-do…
Browse files Browse the repository at this point in the history
…cumentation

specify where the data-attr goes
  • Loading branch information
RCopeland authored Aug 20, 2019
2 parents 351a6e8 + 3d78525 commit 778813e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/patterns/components/inputs/collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ information:
- You should use <a class="drizzle-b-Link" href="#helper-text">helper text</a> when a user needs further
clarification beyond the field label.
- In Vanilla JS applications, if an input is required only, meaning that no validation is needed aside from a value
being supplied, you can add the
<code class='drizzle-c-Command drizzle-c-Command--inline'>data-sprk-required-only</code> attribute. The values that
are available are 'text', 'select', and 'tick'. Text is for any input that accepts text as a value, Select is only
for select inputs, and Tick is for radio buttons or checkboxes.
being supplied, you can add the <code class='drizzle-c-Command drizzle-c-Command--inline'>data-sprk-required-only</code>
attribute to the input container. The values that are available are 'text', 'select', and 'tick'. Text is for any
input that accepts text as a value, Select is only for select inputs, and Tick is for radio buttons or checkboxes.
restrictions:
- You should always add the <code class='drizzle-c-Command drizzle-c-Command--inline'>novalidate</code> attribute
to your form, since we handle form validation ourselves,
Expand Down

0 comments on commit 778813e

Please sign in to comment.