Skip to content

Commit

Permalink
Restore opacity controls
Browse files Browse the repository at this point in the history
Reverts part of #26133
  • Loading branch information
sirreal committed Nov 2, 2020
1 parent 716884d commit 96d8b05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/cover/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ function CoverEdit( {
}
}

const canDim = !! url && ( overlayColor.color || gradientValue );
const hasBackground = !! ( url || overlayColor.color || gradientValue );
const showFocalPointPicker =
isVideoBackground ||
Expand Down Expand Up @@ -426,7 +425,7 @@ function CoverEdit( {
},
] }
>
{ canDim && (
{ !! url && (
<RangeControl
label={ __( 'Opacity' ) }
value={ dimRatio }
Expand Down

0 comments on commit 96d8b05

Please sign in to comment.