File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed
packages/venia-ui/lib/components
FilterModal/CurrentFilters Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const CreateAccount = props => {
46
46
< Button
47
47
data-cy = "CreateAccount-cancelButton"
48
48
className = { classes . cancelButton }
49
- disabled = { isDisabled }
49
+ disabled = { Boolean ( isDisabled ) }
50
50
type = "button"
51
51
priority = "low"
52
52
onClick = { handleCancel }
@@ -62,7 +62,7 @@ const CreateAccount = props => {
62
62
const submitButton = (
63
63
< Button
64
64
className = { classes . submitButton }
65
- disabled = { isDisabled }
65
+ disabled = { Boolean ( isDisabled ) }
66
66
type = "submit"
67
67
priority = "high"
68
68
onKeyDown = { handleEnterKeyPress }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const CurrentFilter = props => {
44
44
< span className = { classes . root } data-cy = "CurrentFilter-root" >
45
45
< Trigger
46
46
action = { handleClick }
47
- ariaLabel = { ariaLabel }
47
+ aria-label = { ariaLabel }
48
48
data-cy = "CurrentFilter-trigger"
49
49
>
50
50
< Icon size = { 20 } src = { Remove } />
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ exports[`#Newsletter display renders correctly 1`] = `
39
39
>
40
40
<label
41
41
className = " label"
42
- htmlFor = " email "
42
+ htmlFor = " emailNews "
43
43
>
44
44
Email
45
45
</label >
@@ -58,7 +58,7 @@ exports[`#Newsletter display renders correctly 1`] = `
58
58
<input
59
59
autoComplete = " email"
60
60
className = " input"
61
- id = " email "
61
+ id = " emailNews "
62
62
name = " email"
63
63
onBlur = { [Function ]}
64
64
onChange = { [Function ]}
@@ -126,7 +126,7 @@ exports[`#Newsletter submit displays an error message if the email already subsc
126
126
>
127
127
<label
128
128
className = " label"
129
- htmlFor = " email "
129
+ htmlFor = " emailNews "
130
130
>
131
131
Email
132
132
</label >
@@ -145,7 +145,7 @@ exports[`#Newsletter submit displays an error message if the email already subsc
145
145
<input
146
146
autoComplete = " email"
147
147
className = " input"
148
- id = " email "
148
+ id = " emailNews "
149
149
name = " email"
150
150
onBlur = { [Function ]}
151
151
onChange = { [Function ]}
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ const Newsletter = props => {
96
96
onSubmit = { handleSubmit }
97
97
>
98
98
< Field
99
- id = "email "
99
+ id = "emailNews "
100
100
label = { formatMessage ( {
101
101
id : 'global.email' ,
102
102
defaultMessage : 'Email'
@@ -105,7 +105,7 @@ const Newsletter = props => {
105
105
< TextInput
106
106
autoComplete = "email"
107
107
field = "email"
108
- id = "email "
108
+ id = "emailNews "
109
109
validate = { isRequired }
110
110
/>
111
111
</ Field >
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ exports[`displays an error message if there is a sign in error 1`] = `
37
37
>
38
38
<label
39
39
className = " label"
40
- htmlFor = " email "
40
+ htmlFor = " emailSignIn "
41
41
>
42
42
Email address
43
43
</label >
@@ -57,7 +57,7 @@ exports[`displays an error message if there is a sign in error 1`] = `
57
57
aria-label = " Email Required"
58
58
autoComplete = " email"
59
59
className = " input"
60
- id = " email "
60
+ id = " emailSignIn "
61
61
name = " email"
62
62
onBlur = { [Function ]}
63
63
onChange = { [Function ]}
@@ -169,7 +169,7 @@ exports[`renders correctly 1`] = `
169
169
>
170
170
<label
171
171
className = " label"
172
- htmlFor = " email "
172
+ htmlFor = " emailSignIn "
173
173
>
174
174
Email address
175
175
</label >
@@ -189,7 +189,7 @@ exports[`renders correctly 1`] = `
189
189
aria-label = " Email Required"
190
190
autoComplete = " email"
191
191
className = " input"
192
- id = " email "
192
+ id = " emailSignIn "
193
193
name = " email"
194
194
onBlur = { [Function ]}
195
195
onChange = { [Function ]}
@@ -301,7 +301,7 @@ exports[`renders prefilled form with initial values 1`] = `
301
301
>
302
302
<label
303
303
className = " label"
304
- htmlFor = " email "
304
+ htmlFor = " emailSignIn "
305
305
>
306
306
Email address
307
307
</label >
@@ -321,7 +321,7 @@ exports[`renders prefilled form with initial values 1`] = `
321
321
aria-label = " Email Required"
322
322
autoComplete = " email"
323
323
className = " input"
324
- id = " email "
324
+ id = " emailSignIn "
325
325
name = " email"
326
326
onBlur = { [Function ]}
327
327
onChange = { [Function ]}
Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ const SignIn = props => {
67
67
initialValues = { initialValues && initialValues }
68
68
>
69
69
< Field
70
- id = "email "
70
+ id = "emailSignIn "
71
71
label = { formatMessage ( {
72
72
id : 'signIn.emailAddressText' ,
73
73
defaultMessage : 'Email address'
74
74
} ) }
75
75
>
76
76
< TextInput
77
- id = "email "
77
+ id = "emailSignIn "
78
78
data-cy = "SignIn-email"
79
79
autoComplete = "email"
80
80
field = "email"
@@ -124,7 +124,7 @@ const SignIn = props => {
124
124
type = "submit"
125
125
onKeyDown = { signinHandleEnterKeyPress }
126
126
data-cy = "SignInButton-root_highPriority"
127
- disabled = { isBusy }
127
+ disabled = { Boolean ( isBusy ) }
128
128
>
129
129
< FormattedMessage
130
130
id = { 'signIn.signInText' }
You can’t perform that action at this time.
0 commit comments