Skip to content

Commit

Permalink
Fix for the color field
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Jun 23, 2019
1 parent 9df0fc2 commit 359ef38
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions fields/types/color/ColorField.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const ColorField = Field.create({
);
},
renderField () {

const { displayColorPicker } = this.state;

return (
Expand All @@ -88,7 +89,7 @@ const ColorField = Field.create({
/>
</Section>
<Section>
<Button onClick={this.handleClick} cssStyles={classes.button} data-e2e-type-color__button>
<Button onClick={this.handleClick} style={classes.button} data-e2e-type-color__button>
{this.renderSwatch()}
</Button>
</Section>
Expand Down Expand Up @@ -117,13 +118,13 @@ const ColorField = Field.create({
/* eslint quote-props: ["error", "as-needed"] */
const classes = {
button: {
background: 'white',
background: 'white !important',
padding: 4,
width: theme.component.height,

':hover': {
background: 'white',
},
// ':hover': {
// background: 'white',
// },
},
blockout: {
bottom: 0,
Expand Down

0 comments on commit 359ef38

Please sign in to comment.