From 017a36c6f9587977b9a13e9b8fb1adf0e101b269 Mon Sep 17 00:00:00 2001 From: Marcy Sutton Date: Wed, 16 Nov 2016 14:32:42 -0800 Subject: [PATCH 1/2] fix(a11y): add missing labels to forms doc Showing how to create a form without labeling inputs is an accessibility anti-pattern. This change adds labels to the examples to address that. Codepen may still need to be updated depending on how that example is created. --- docs/forms.md | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/docs/forms.md b/docs/forms.md index fdab54095..005696fc0 100644 --- a/docs/forms.md +++ b/docs/forms.md @@ -13,8 +13,10 @@ HTML form elements work a little bit differently from other DOM elements in Reac ```html
- Name: - +
``` @@ -51,8 +53,10 @@ class NameForm extends React.Component { render() { return (
- Name: - +
); @@ -108,8 +112,10 @@ class EssayForm extends React.Component { render() { return (
- Name: -