Skip to content

Commit a7547f4

Browse files
authored
Deprecate form validation (#2301)
1 parent b826729 commit a7547f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/content/components/forms.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,11 @@ Use the `.select-sm` class to resize both default and custom `<select>`s to matc
232232
</form>
233233
```
234234

235-
## Form group validation
235+
## Form group validation (deprecated)
236+
237+
<Note>
238+
These form validation styles are deprecated. Please use the <a href="https://primer.style/view-components/components/alpha/textfield#with-a-validation-message">TextField</a> ViewComponent instead or refer to the <a href="https://primer.style/design/ui-patterns/forms#validation">design guidelines</a>.
239+
</Note>
236240

237241
Convey success, errors and warnings for form groups. For github.com consider using the [`<auto-check>`](https://github.github.io/web-systems-documentation/#custom-elements-auto-check-md) element to perform server-side validation on an input.
238242

0 commit comments

Comments
 (0)