Skip to content

Commit

Permalink
Process CR.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Sep 29, 2017
1 parent a612cdd commit bc81f6b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions blocks/color-palette/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ColorPalette extends Component {
style={ style }
onClick={ () => onChange( value === color ? undefined : color ) }
aria-label={ sprintf( __( 'Color: %s' ), color ) }
aria-pressed={ value === color ? true : false }
aria-pressed={ value === color }
/>
</div>
);
Expand All @@ -79,12 +79,11 @@ class ColorPalette extends Component {
ref={ this.bindToggleNode }
aria-label={ __( 'Custom color picker' ) }
>
<span className="blocks-color-palette__custom-color-gradient"></span>
<span className="blocks-color-palette__custom-color-gradient"/>
</button>
<Popover
isOpen={ this.state.opened }
onClose={ this.closeOnClickOutside }
onClick={ this.stopPropagation }
onClickOutside={ this.closeOnClickOutside }
className="blocks-color-palette__picker"
>
<ChromePicker
Expand Down

0 comments on commit bc81f6b

Please sign in to comment.