get rid of cover element
This commit is contained in:
parent
789c849666
commit
ff9df643ef
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { createElement, useEffect, Fragment } from '@wordpress/element';
|
||||
import { createElement, useEffect } from '@wordpress/element';
|
||||
import { BlockInstance, parse, serialize } from '@wordpress/blocks';
|
||||
import { useSelect } from '@wordpress/data';
|
||||
import classNames from 'classnames';
|
||||
|
@ -109,13 +109,7 @@ export function DescriptionBlockEdit( {
|
|||
{ ! description.length && <div { ...innerBlockProps } /> }
|
||||
|
||||
{ !! description.length && (
|
||||
<div className="wp-block-woocommerce-product-description-field__cover" />
|
||||
) }
|
||||
|
||||
{ !! description.length && (
|
||||
<>
|
||||
<BlockPreview blocks={ parse( description ) } />
|
||||
</>
|
||||
<BlockPreview blocks={ parse( description ) } />
|
||||
) }
|
||||
|
||||
{ isModalEditorOpen && <ModalEditorWelcomeGuide /> }
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
.wp-block-woocommerce-product-description-field {
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
||||
|
@ -7,7 +6,6 @@
|
|||
|
||||
&.has-blocks {
|
||||
min-height: 320px;
|
||||
.wp-block-woocommerce-product-description-field__cover,
|
||||
.woocommerce-content-preview {
|
||||
min-height: 320px;
|
||||
&:after {
|
||||
|
@ -28,11 +26,3 @@
|
|||
z-index: 100;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-woocommerce-product-description-field__cover {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 200;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue