Skip to content

Commit

Permalink
WordPress#5258 Color Palette - Added dashicon for rainbox color picke…
Browse files Browse the repository at this point in the history
…r, and required css fix

Signed-off-by: Faishal Saiyed <[email protected]>
  • Loading branch information
faishal committed Mar 6, 2018
1 parent d459ee9 commit 21a5742
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blocks/color-palette/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { map } from 'lodash';
/**
* WordPress dependencies
*/
import { Dropdown, withContext } from '@wordpress/components';
import { Dropdown, withContext, Dashicon } from '@wordpress/components';
import { __, sprintf } from '@wordpress/i18n';

/**
Expand Down Expand Up @@ -53,7 +53,9 @@ export function ColorPalette( { colors, disableCustomColors = false, value, onCh
onClick={ onToggle }
aria-label={ __( 'Custom color picker' ) }
>
<span className="blocks-color-palette__custom-color-gradient" />
<span className="blocks-color-palette__custom-color-gradient">
<Dashicon icon="admin-customizer" />
</span>
</button>
) }
renderContent={ () => (
Expand Down
5 changes: 5 additions & 0 deletions blocks/color-palette/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ $color-palette-circle-spacing: 14px;
left: 0;
border-radius: 50%;
overflow: hidden;
.dashicon{
color: $white;
position: relative;
margin: 10%;
}
}

.blocks-color-palette__custom-color .blocks-color-palette__custom-color-gradient:before {
Expand Down

0 comments on commit 21a5742

Please sign in to comment.