Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/color-palette-control/color-palette-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { AdvancedToolbarControl } from '..'
import { i18n } from 'stackable'
import { extractColor } from '~stackable/util'

/**
* WordPress dependencies
Expand Down Expand Up @@ -39,6 +40,8 @@ export const ColorPalettePopup = memo( props => {
isGradient,
} = props

const extractedValue = extractColor( value )

const [ tab, setTab ] = useState( value.startsWith( 'linear-' ) || value.startsWith( 'radial-' ) ? 'gradient' : '' )
const allColors = colors.reduce( ( colors, group ) => {
return [
Expand Down Expand Up @@ -87,7 +90,7 @@ export const ColorPalettePopup = memo( props => {
onChange={ newValue => {
onChange( preOnChange( newValue, value ) )
} }
color={ value }
color={ extractedValue }
enableAlpha={ true }
/>
}
Expand Down
Loading