@@ -218,21 +218,21 @@ type: example
218218 contrastAgainst,
219219 renderContrastErrorMessage : (contrast , minContrast ) => [
220220 {
221- type: ' error ' ,
221+ type: ' newError ' ,
222222 text: ` Not high enough contrast. Minimum required is ${ minContrast} :1, current is ${ contrast} :1`
223223 }
224224 ]
225225 }
226226 }
227227 renderInvalidColorMessage= {(hexCode ) => [
228228 {
229- type: ' error ' ,
229+ type: ' newError ' ,
230230 text: ` Not valid hex color. It should be either 3, 6 or 8 character long.`
231231 }
232232 ]}
233233 renderIsRequiredMessage= {() => [
234234 {
235- type: ' error ' ,
235+ type: ' newError ' ,
236236 text: ` This field is required, please enter a valid hex code`
237237 }
238238 ]}
@@ -334,17 +334,17 @@ type: example
334334 { type: " success" , text: " I am a contrast success message" },
335335 ],
336336 renderContrastErrorMessage : () => [
337- { type: " error " , text: " I am a contrast warning message" },
337+ { type: " newError " , text: " I am a contrast warning message" },
338338 ],
339339 }}
340340 renderMessages= {() => [
341341 { type: " hint" , text: " I can display anything, at any time" },
342342 ]}
343343 renderInvalidColorMessage= {() => [
344- { type: " error " , text: " I am an invalid color message" },
344+ { type: " newError " , text: " I am an invalid color message" },
345345 ]}
346346 renderIsRequiredMessage= {() => [
347- { type: " error " , text: " I am a required message" },
347+ { type: " newError " , text: " I am a required message" },
348348 ]}
349349 placeholderText= " Enter HEX"
350350 / >
0 commit comments