File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ export class ArrayField extends Component {
110
110
) ;
111
111
} ) }
112
112
113
- < label className = "helptext" > { helpText } </ label >
113
+ { helpText && < label className = "helptext" > { helpText } </ label > }
114
114
115
115
< Form . Group >
116
116
< Form . Button
117
117
type = "button"
118
118
icon
119
- className = "align-self-end"
119
+ className = "align-self-end mt-15 "
120
120
labelPosition = "left"
121
121
onClick = { ( ) => {
122
122
arrayHelpers . push ( {
@@ -140,6 +140,7 @@ export class ArrayField extends Component {
140
140
< FieldArray
141
141
className = "invenio-array-field"
142
142
name = { fieldPath }
143
+ id = { fieldPath }
143
144
component = { this . renderFormField }
144
145
/>
145
146
) ;
Original file line number Diff line number Diff line change @@ -212,6 +212,9 @@ export class RemoteSelectField extends Component {
212
212
options = { suggestions }
213
213
noResultsMessage = { this . getNoResultsMessage ( ) }
214
214
search = { compProps . search }
215
+ searchInput = { {
216
+ id : compProps . fieldPath ,
217
+ } }
215
218
lazyLoad
216
219
open = { open }
217
220
onClose = { this . onClose }
Original file line number Diff line number Diff line change @@ -67,8 +67,7 @@ export class SelectField extends Component {
67
67
// otherwise it would be displayed despite updating the fieldu
68
68
( initialValue === value && getIn ( initialErrors , fieldPath , null ) )
69
69
}
70
- id = { fieldPath }
71
- label = { { children : label , htmlFor : fieldPath } }
70
+ label = { { children : label } }
72
71
name = { fieldPath }
73
72
onBlur = { handleBlur }
74
73
onChange = { ( event , data ) => {
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export class TextField extends Component {
45
45
disabled = { disabled }
46
46
fluid
47
47
label = { label }
48
+ id = { fieldPath }
48
49
required = { required }
49
50
{ ...uiProps }
50
51
/>
Original file line number Diff line number Diff line change @@ -32,8 +32,12 @@ export default class Dropdown extends Component {
32
32
label = { < FieldLabel htmlFor = { fieldPath } icon = { icon } label = { label } /> }
33
33
options = { this . serializeOptions ( options ) }
34
34
search = { search }
35
+ aria-label = { label }
35
36
multiple = { multiple }
36
- placeholder = { placeholder }
37
+ placeholder = { {
38
+ role : "option" ,
39
+ content : placeholder ,
40
+ } }
37
41
clearable = { clearable }
38
42
required = { required }
39
43
optimized
You can’t perform that action at this time.
0 commit comments