From 60682bd52111e276689a57f17ca46af727d4c241 Mon Sep 17 00:00:00 2001 From: prconcepcion Date: Tue, 17 Oct 2023 06:32:50 +0800 Subject: [PATCH] added style needed for borderRadius2 --- src/block-components/helpers/borders/style.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/block-components/helpers/borders/style.js b/src/block-components/helpers/borders/style.js index 278b0be43..a49ef340e 100644 --- a/src/block-components/helpers/borders/style.js +++ b/src/block-components/helpers/borders/style.js @@ -92,6 +92,7 @@ const Styles = props => { { ...propsToPass } // Adding a border radius should append `overflow: hidden`. // This is to prevent gradient background from overflowing. + // borderRadius is deprecated, see comment below. selector={ borderRadiusSelector || selector } styleRule="overflow" attrName="borderRadius" @@ -109,6 +110,27 @@ const Styles = props => { valueCallback={ () => 'hidden' } dependencies={ [ 'overflow' ] } /> + { + if ( addBorderRadiusOverflow && attrNameTemplate === 'block%s' && attributes.overflow ) { + return false + } + return addBorderRadiusOverflow + } } + valueCallback={ () => 'hidden' } + dependencies={ [ 'overflow' ] } + />