playbook_ui_docs 15.0.0.pre.alpha.PLAY2423circleiconbuttonaria10326 → 15.0.0.pre.alpha.PLAY2425textinputaccessibility10328

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c15462eaaa117869d1c2a19ab737f79e42cf4cfd8433c242a10e67b7f29c207
4
- data.tar.gz: 8d9400e17d3c04618871600ede2d021bb9e665eb694c7ba5110017e5708e3830
3
+ metadata.gz: d133dd1215fb77cc3a237ccc8ca06838a4843d3d0b2f847cd2b9b68c378c76d5
4
+ data.tar.gz: 2e86c8996875d50fc37b2d7850cc10779214f81d55716a1a51e4b5225efb1844
5
5
  SHA512:
6
- metadata.gz: bd9f11a5602cb27ec8959fb5003e87473d7c98a8bdb8d39c23aba91a75dacd93012effcd65d811d5f945f266537fcb4016745f1cd6d70a54f4578a4fbcab712e
7
- data.tar.gz: 65934dd4d200da7b160a0cd594726107ccf036cdb4649583c5e89b51c54763ac324251cf40b9e10ba0d6266491caf8bc721565af259e2f97f144d9146e0133d1
6
+ metadata.gz: 544ae39548af3a914962c1ab15dfdeacacac08ab62cd349d2359df4c74f691a3230bf417e79917b7f2322de905b7ba293c74fbd30d3069164ddda0638c7b6183
7
+ data.tar.gz: 802b92b326d05eece7b3236f6f7ef07dfd3dcd22567697627a5c61381df6c5cb85a02566f2d8d5fc1b4356438dc6d54efefc2927ceaef10254cd91b45e83b040
@@ -9,23 +9,27 @@
9
9
 
10
10
  <%= pb_rails("text_input", props: {
11
11
  label: "Last Name",
12
- placeholder: "Enter last name"
12
+ placeholder: "Enter last name",
13
+ id: "last-name"
13
14
  }) %>
14
15
 
15
16
  <%= pb_rails("text_input", props: {
16
17
  label: "Phone Number",
17
18
  type: "phone",
18
- placeholder: "Enter phone number"
19
+ placeholder: "Enter phone number",
20
+ id: "phone"
19
21
  }) %>
20
22
 
21
23
  <%= pb_rails("text_input", props: {
22
24
  label: "Email Address",
23
25
  type: "email",
24
- placeholder: "Enter email address"
26
+ placeholder: "Enter email address",
27
+ id: "email"
25
28
  }) %>
26
29
 
27
30
  <%= pb_rails("text_input", props: {
28
31
  label: "Zip Code",
29
32
  type: "number",
30
- placeholder: "Enter zip code"
33
+ placeholder: "Enter zip code",
34
+ id: "zip"
31
35
  }) %>
@@ -38,6 +38,7 @@ const TextInputDefault = (props) => {
38
38
  {...props}
39
39
  />
40
40
  <TextInput
41
+ id="last-name"
41
42
  label="Last Name"
42
43
  name="lastName"
43
44
  onChange={handleOnChangeFormField}
@@ -46,6 +47,7 @@ const TextInputDefault = (props) => {
46
47
  {...props}
47
48
  />
48
49
  <TextInput
50
+ id="phone"
49
51
  label="Phone Number"
50
52
  name="phone"
51
53
  onChange={handleOnChangeFormField}
@@ -55,6 +57,7 @@ const TextInputDefault = (props) => {
55
57
  {...props}
56
58
  />
57
59
  <TextInput
60
+ id="email"
58
61
  label="Email Address"
59
62
  name="email"
60
63
  onChange={handleOnChangeFormField}
@@ -64,6 +67,7 @@ const TextInputDefault = (props) => {
64
67
  {...props}
65
68
  />
66
69
  <TextInput
70
+ id="zip"
67
71
  label="Zip Code"
68
72
  name="zip"
69
73
  onChange={handleOnChangeFormField}
@@ -84,6 +88,7 @@ const TextInputDefault = (props) => {
84
88
  <br />
85
89
 
86
90
  <TextInput
91
+ id="first-name"
87
92
  label="First Name"
88
93
  onChange={handleOnChangeFirstName}
89
94
  placeholder="Enter first name"
@@ -0,0 +1 @@
1
+ Add an `id` to your Text Input so that clicking the label will move focus directly to the input.