Skip to content

Commit

Permalink
Disable spell checking in color text input (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconita authored and casesandberg committed Jul 5, 2017
1 parent 7adc7d0 commit 71ab42c
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/block/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ exports[`test Block \`triangle="none"\` 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBorderRadius": "4px",
Expand Down Expand Up @@ -696,6 +697,7 @@ exports[`test Block renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBorderRadius": "4px",
Expand Down
2 changes: 2 additions & 0 deletions src/components/chrome/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ exports[`test Chrome renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBorderRadius": "2px",
Expand Down Expand Up @@ -569,6 +570,7 @@ exports[`test ChromeFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBorderRadius": "2px",
Expand Down
1 change: 1 addition & 0 deletions src/components/common/EditableInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export class EditableInput extends (PureComponent || Component) {
onChange={ this.handleChange }
onBlur={ this.handleBlur }
placeholder={ this.props.placeholder }
spellCheck="false"
/>
{ this.props.label ? (
<span style={ styles.label } onMouseDown={ this.handleMouseDown }>
Expand Down
1 change: 1 addition & 0 deletions src/components/common/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ exports[`test EditableInput renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder="#fff"
spellCheck="false"
style={Object {}}
value="UNDEFINED" />
<span
Expand Down
12 changes: 12 additions & 0 deletions src/components/compact/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,7 @@ exports[`test Compact renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -1572,6 +1573,7 @@ exports[`test Compact renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -1618,6 +1620,7 @@ exports[`test Compact renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -1664,6 +1667,7 @@ exports[`test Compact renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3270,6 +3274,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3310,6 +3315,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3356,6 +3362,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3402,6 +3409,7 @@ exports[`test Compact with onSwatchHover renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3519,6 +3527,7 @@ exports[`test CompactFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3559,6 +3568,7 @@ exports[`test CompactFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3605,6 +3615,7 @@ exports[`test CompactFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down Expand Up @@ -3651,6 +3662,7 @@ exports[`test CompactFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"background": "none",
Expand Down
4 changes: 4 additions & 0 deletions src/components/material/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ exports[`test Material renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"border": "0px",
Expand Down Expand Up @@ -113,6 +114,7 @@ exports[`test Material renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"border": "0px",
Expand Down Expand Up @@ -165,6 +167,7 @@ exports[`test Material renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"border": "0px",
Expand Down Expand Up @@ -217,6 +220,7 @@ exports[`test Material renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"border": "0px",
Expand Down
14 changes: 14 additions & 0 deletions src/components/photoshop/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ exports[`test Photoshop renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -454,6 +455,7 @@ exports[`test Photoshop renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -499,6 +501,7 @@ exports[`test Photoshop renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -550,6 +553,7 @@ exports[`test Photoshop renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -595,6 +599,7 @@ exports[`test Photoshop renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -640,6 +645,7 @@ exports[`test Photoshop renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -691,6 +697,7 @@ exports[`test Photoshop renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -824,6 +831,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -869,6 +877,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -914,6 +923,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -965,6 +975,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -1010,6 +1021,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -1055,6 +1067,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down Expand Up @@ -1106,6 +1119,7 @@ exports[`test PhotoshopFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
Expand Down
10 changes: 10 additions & 0 deletions src/components/sketch/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ exports[`test Sketch renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -476,6 +477,7 @@ exports[`test Sketch renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -530,6 +532,7 @@ exports[`test Sketch renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -584,6 +587,7 @@ exports[`test Sketch renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -638,6 +642,7 @@ exports[`test Sketch renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -1287,6 +1292,7 @@ exports[`test SketchFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -1340,6 +1346,7 @@ exports[`test SketchFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -1394,6 +1401,7 @@ exports[`test SketchFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -1448,6 +1456,7 @@ exports[`test SketchFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down Expand Up @@ -1502,6 +1511,7 @@ exports[`test SketchFields renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBoxShadow": "inset 0 0 0 1px #ccc",
Expand Down
3 changes: 3 additions & 0 deletions src/components/twitter/__snapshots__/spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ exports[`test Twitter \`triangle="none"\` 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBorderRadius": "0 4px 4px 0",
Expand Down Expand Up @@ -718,6 +719,7 @@ exports[`test Twitter \`triangle="top-right"\` 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBorderRadius": "0 4px 4px 0",
Expand Down Expand Up @@ -1097,6 +1099,7 @@ exports[`test Twitter renders correctly 1`] = `
onChange={[Function]}
onKeyDown={[Function]}
placeholder={undefined}
spellCheck="false"
style={
Object {
"MozBorderRadius": "0 4px 4px 0",
Expand Down

0 comments on commit 71ab42c

Please sign in to comment.