Skip to content

Commit

Permalink
Color Panel: Fix rendering of tabs with no palette (WordPress#51498)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored and sethrubenstein committed Jul 13, 2023
1 parent 90e0b2c commit 6e71822
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,22 +525,22 @@ export default function ColorPanel( {
isShownByDefault: defaultControls.background,
indicators: [ gradient ?? backgroundColor ],
tabs: [
{
hasSolidColors && {
key: 'background',
label: __( 'Solid' ),
inheritedValue: backgroundColor,
setValue: setBackgroundColor,
userValue: userBackgroundColor,
},
{
hasGradientColors && {
key: 'gradient',
label: __( 'Gradient' ),
inheritedValue: gradient,
setValue: setGradient,
userValue: userGradient,
isGradient: true,
},
],
].filter( Boolean ),
},
showLinkPanel && {
key: 'link',
Expand Down

0 comments on commit 6e71822

Please sign in to comment.