Skip to content

Commit 71ab42c

Browse files
vasconitacasesandberg
authored andcommitted
Disable spell checking in color text input (#373)
1 parent 7adc7d0 commit 71ab42c

File tree

9 files changed

+49
-0
lines changed

9 files changed

+49
-0
lines changed

src/components/block/__snapshots__/spec.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ exports[`test Block \`triangle="none"\` 1`] = `
333333
onChange={[Function]}
334334
onKeyDown={[Function]}
335335
placeholder={undefined}
336+
spellCheck="false"
336337
style={
337338
Object {
338339
"MozBorderRadius": "4px",
@@ -696,6 +697,7 @@ exports[`test Block renders correctly 1`] = `
696697
onChange={[Function]}
697698
onKeyDown={[Function]}
698699
placeholder={undefined}
700+
spellCheck="false"
699701
style={
700702
Object {
701703
"MozBorderRadius": "4px",

src/components/chrome/__snapshots__/spec.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ exports[`test Chrome renders correctly 1`] = `
441441
onChange={[Function]}
442442
onKeyDown={[Function]}
443443
placeholder={undefined}
444+
spellCheck="false"
444445
style={
445446
Object {
446447
"MozBorderRadius": "2px",
@@ -569,6 +570,7 @@ exports[`test ChromeFields renders correctly 1`] = `
569570
onChange={[Function]}
570571
onKeyDown={[Function]}
571572
placeholder={undefined}
573+
spellCheck="false"
572574
style={
573575
Object {
574576
"MozBorderRadius": "2px",

src/components/common/EditableInput.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export class EditableInput extends (PureComponent || Component) {
129129
onChange={ this.handleChange }
130130
onBlur={ this.handleBlur }
131131
placeholder={ this.props.placeholder }
132+
spellCheck="false"
132133
/>
133134
{ this.props.label ? (
134135
<span style={ styles.label } onMouseDown={ this.handleMouseDown }>

src/components/common/__snapshots__/spec.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ exports[`test EditableInput renders correctly 1`] = `
152152
onChange={[Function]}
153153
onKeyDown={[Function]}
154154
placeholder="#fff"
155+
spellCheck="false"
155156
style={Object {}}
156157
value="UNDEFINED" />
157158
<span

src/components/compact/__snapshots__/spec.js.snap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,7 @@ exports[`test Compact renders correctly 1`] = `
15321532
onChange={[Function]}
15331533
onKeyDown={[Function]}
15341534
placeholder={undefined}
1535+
spellCheck="false"
15351536
style={
15361537
Object {
15371538
"background": "none",
@@ -1572,6 +1573,7 @@ exports[`test Compact renders correctly 1`] = `
15721573
onChange={[Function]}
15731574
onKeyDown={[Function]}
15741575
placeholder={undefined}
1576+
spellCheck="false"
15751577
style={
15761578
Object {
15771579
"background": "none",
@@ -1618,6 +1620,7 @@ exports[`test Compact renders correctly 1`] = `
16181620
onChange={[Function]}
16191621
onKeyDown={[Function]}
16201622
placeholder={undefined}
1623+
spellCheck="false"
16211624
style={
16221625
Object {
16231626
"background": "none",
@@ -1664,6 +1667,7 @@ exports[`test Compact renders correctly 1`] = `
16641667
onChange={[Function]}
16651668
onKeyDown={[Function]}
16661669
placeholder={undefined}
1670+
spellCheck="false"
16671671
style={
16681672
Object {
16691673
"background": "none",
@@ -3270,6 +3274,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
32703274
onChange={[Function]}
32713275
onKeyDown={[Function]}
32723276
placeholder={undefined}
3277+
spellCheck="false"
32733278
style={
32743279
Object {
32753280
"background": "none",
@@ -3310,6 +3315,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
33103315
onChange={[Function]}
33113316
onKeyDown={[Function]}
33123317
placeholder={undefined}
3318+
spellCheck="false"
33133319
style={
33143320
Object {
33153321
"background": "none",
@@ -3356,6 +3362,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
33563362
onChange={[Function]}
33573363
onKeyDown={[Function]}
33583364
placeholder={undefined}
3365+
spellCheck="false"
33593366
style={
33603367
Object {
33613368
"background": "none",
@@ -3402,6 +3409,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
34023409
onChange={[Function]}
34033410
onKeyDown={[Function]}
34043411
placeholder={undefined}
3412+
spellCheck="false"
34053413
style={
34063414
Object {
34073415
"background": "none",
@@ -3519,6 +3527,7 @@ exports[`test CompactFields renders correctly 1`] = `
35193527
onChange={[Function]}
35203528
onKeyDown={[Function]}
35213529
placeholder={undefined}
3530+
spellCheck="false"
35223531
style={
35233532
Object {
35243533
"background": "none",
@@ -3559,6 +3568,7 @@ exports[`test CompactFields renders correctly 1`] = `
35593568
onChange={[Function]}
35603569
onKeyDown={[Function]}
35613570
placeholder={undefined}
3571+
spellCheck="false"
35623572
style={
35633573
Object {
35643574
"background": "none",
@@ -3605,6 +3615,7 @@ exports[`test CompactFields renders correctly 1`] = `
36053615
onChange={[Function]}
36063616
onKeyDown={[Function]}
36073617
placeholder={undefined}
3618+
spellCheck="false"
36083619
style={
36093620
Object {
36103621
"background": "none",
@@ -3651,6 +3662,7 @@ exports[`test CompactFields renders correctly 1`] = `
36513662
onChange={[Function]}
36523663
onKeyDown={[Function]}
36533664
placeholder={undefined}
3665+
spellCheck="false"
36543666
style={
36553667
Object {
36563668
"background": "none",

src/components/material/__snapshots__/spec.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ exports[`test Material renders correctly 1`] = `
5353
onChange={[Function]}
5454
onKeyDown={[Function]}
5555
placeholder={undefined}
56+
spellCheck="false"
5657
style={
5758
Object {
5859
"border": "0px",
@@ -113,6 +114,7 @@ exports[`test Material renders correctly 1`] = `
113114
onChange={[Function]}
114115
onKeyDown={[Function]}
115116
placeholder={undefined}
117+
spellCheck="false"
116118
style={
117119
Object {
118120
"border": "0px",
@@ -165,6 +167,7 @@ exports[`test Material renders correctly 1`] = `
165167
onChange={[Function]}
166168
onKeyDown={[Function]}
167169
placeholder={undefined}
170+
spellCheck="false"
168171
style={
169172
Object {
170173
"border": "0px",
@@ -217,6 +220,7 @@ exports[`test Material renders correctly 1`] = `
217220
onChange={[Function]}
218221
onKeyDown={[Function]}
219222
placeholder={undefined}
223+
spellCheck="false"
220224
style={
221225
Object {
222226
"border": "0px",

src/components/photoshop/__snapshots__/spec.js.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ exports[`test Photoshop renders correctly 1`] = `
409409
onChange={[Function]}
410410
onKeyDown={[Function]}
411411
placeholder={undefined}
412+
spellCheck="false"
412413
style={
413414
Object {
414415
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -454,6 +455,7 @@ exports[`test Photoshop renders correctly 1`] = `
454455
onChange={[Function]}
455456
onKeyDown={[Function]}
456457
placeholder={undefined}
458+
spellCheck="false"
457459
style={
458460
Object {
459461
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -499,6 +501,7 @@ exports[`test Photoshop renders correctly 1`] = `
499501
onChange={[Function]}
500502
onKeyDown={[Function]}
501503
placeholder={undefined}
504+
spellCheck="false"
502505
style={
503506
Object {
504507
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -550,6 +553,7 @@ exports[`test Photoshop renders correctly 1`] = `
550553
onChange={[Function]}
551554
onKeyDown={[Function]}
552555
placeholder={undefined}
556+
spellCheck="false"
553557
style={
554558
Object {
555559
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -595,6 +599,7 @@ exports[`test Photoshop renders correctly 1`] = `
595599
onChange={[Function]}
596600
onKeyDown={[Function]}
597601
placeholder={undefined}
602+
spellCheck="false"
598603
style={
599604
Object {
600605
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -640,6 +645,7 @@ exports[`test Photoshop renders correctly 1`] = `
640645
onChange={[Function]}
641646
onKeyDown={[Function]}
642647
placeholder={undefined}
648+
spellCheck="false"
643649
style={
644650
Object {
645651
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -691,6 +697,7 @@ exports[`test Photoshop renders correctly 1`] = `
691697
onChange={[Function]}
692698
onKeyDown={[Function]}
693699
placeholder={undefined}
700+
spellCheck="false"
694701
style={
695702
Object {
696703
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -824,6 +831,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
824831
onChange={[Function]}
825832
onKeyDown={[Function]}
826833
placeholder={undefined}
834+
spellCheck="false"
827835
style={
828836
Object {
829837
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -869,6 +877,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
869877
onChange={[Function]}
870878
onKeyDown={[Function]}
871879
placeholder={undefined}
880+
spellCheck="false"
872881
style={
873882
Object {
874883
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -914,6 +923,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
914923
onChange={[Function]}
915924
onKeyDown={[Function]}
916925
placeholder={undefined}
926+
spellCheck="false"
917927
style={
918928
Object {
919929
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -965,6 +975,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
965975
onChange={[Function]}
966976
onKeyDown={[Function]}
967977
placeholder={undefined}
978+
spellCheck="false"
968979
style={
969980
Object {
970981
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -1010,6 +1021,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
10101021
onChange={[Function]}
10111022
onKeyDown={[Function]}
10121023
placeholder={undefined}
1024+
spellCheck="false"
10131025
style={
10141026
Object {
10151027
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -1055,6 +1067,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
10551067
onChange={[Function]}
10561068
onKeyDown={[Function]}
10571069
placeholder={undefined}
1070+
spellCheck="false"
10581071
style={
10591072
Object {
10601073
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
@@ -1106,6 +1119,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
11061119
onChange={[Function]}
11071120
onKeyDown={[Function]}
11081121
placeholder={undefined}
1122+
spellCheck="false"
11091123
style={
11101124
Object {
11111125
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",

src/components/sketch/__snapshots__/spec.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ exports[`test Sketch renders correctly 1`] = `
423423
onChange={[Function]}
424424
onKeyDown={[Function]}
425425
placeholder={undefined}
426+
spellCheck="false"
426427
style={
427428
Object {
428429
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -476,6 +477,7 @@ exports[`test Sketch renders correctly 1`] = `
476477
onChange={[Function]}
477478
onKeyDown={[Function]}
478479
placeholder={undefined}
480+
spellCheck="false"
479481
style={
480482
Object {
481483
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -530,6 +532,7 @@ exports[`test Sketch renders correctly 1`] = `
530532
onChange={[Function]}
531533
onKeyDown={[Function]}
532534
placeholder={undefined}
535+
spellCheck="false"
533536
style={
534537
Object {
535538
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -584,6 +587,7 @@ exports[`test Sketch renders correctly 1`] = `
584587
onChange={[Function]}
585588
onKeyDown={[Function]}
586589
placeholder={undefined}
590+
spellCheck="false"
587591
style={
588592
Object {
589593
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -638,6 +642,7 @@ exports[`test Sketch renders correctly 1`] = `
638642
onChange={[Function]}
639643
onKeyDown={[Function]}
640644
placeholder={undefined}
645+
spellCheck="false"
641646
style={
642647
Object {
643648
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -1287,6 +1292,7 @@ exports[`test SketchFields renders correctly 1`] = `
12871292
onChange={[Function]}
12881293
onKeyDown={[Function]}
12891294
placeholder={undefined}
1295+
spellCheck="false"
12901296
style={
12911297
Object {
12921298
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -1340,6 +1346,7 @@ exports[`test SketchFields renders correctly 1`] = `
13401346
onChange={[Function]}
13411347
onKeyDown={[Function]}
13421348
placeholder={undefined}
1349+
spellCheck="false"
13431350
style={
13441351
Object {
13451352
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -1394,6 +1401,7 @@ exports[`test SketchFields renders correctly 1`] = `
13941401
onChange={[Function]}
13951402
onKeyDown={[Function]}
13961403
placeholder={undefined}
1404+
spellCheck="false"
13971405
style={
13981406
Object {
13991407
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -1448,6 +1456,7 @@ exports[`test SketchFields renders correctly 1`] = `
14481456
onChange={[Function]}
14491457
onKeyDown={[Function]}
14501458
placeholder={undefined}
1459+
spellCheck="false"
14511460
style={
14521461
Object {
14531462
"MozBoxShadow": "inset 0 0 0 1px #ccc",
@@ -1502,6 +1511,7 @@ exports[`test SketchFields renders correctly 1`] = `
15021511
onChange={[Function]}
15031512
onKeyDown={[Function]}
15041513
placeholder={undefined}
1514+
spellCheck="false"
15051515
style={
15061516
Object {
15071517
"MozBoxShadow": "inset 0 0 0 1px #ccc",

src/components/twitter/__snapshots__/spec.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ exports[`test Twitter \`triangle="none"\` 1`] = `
339339
onChange={[Function]}
340340
onKeyDown={[Function]}
341341
placeholder={undefined}
342+
spellCheck="false"
342343
style={
343344
Object {
344345
"MozBorderRadius": "0 4px 4px 0",
@@ -718,6 +719,7 @@ exports[`test Twitter \`triangle="top-right"\` 1`] = `
718719
onChange={[Function]}
719720
onKeyDown={[Function]}
720721
placeholder={undefined}
722+
spellCheck="false"
721723
style={
722724
Object {
723725
"MozBorderRadius": "0 4px 4px 0",
@@ -1097,6 +1099,7 @@ exports[`test Twitter renders correctly 1`] = `
10971099
onChange={[Function]}
10981100
onKeyDown={[Function]}
10991101
placeholder={undefined}
1102+
spellCheck="false"
11001103
style={
11011104
Object {
11021105
"MozBorderRadius": "0 4px 4px 0",

0 commit comments

Comments
 (0)