Skip to content

Commit

Permalink
PLANET-7513 Remove the style section from the Carousel Header backend… (
Browse files Browse the repository at this point in the history
#2323)

PLANET-7513 Remove the style section from the Carousel Header backend experience

- Removed the style section from the editor for Carousel block
- Removed styling from stylesheet so only default styling is applied
  • Loading branch information
Osong-Michael authored Jul 16, 2024
1 parent b349c2d commit da2a50b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions assets/src/blocks/CarouselHeader/CarouselHeaderBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {CarouselHeaderFrontend} from './CarouselHeaderFrontend';
import {renderToString} from 'react-dom/server';

const {registerBlockType} = wp.blocks;
const {__} = wp.i18n;
const {RawHTML} = wp.element;

const BLOCK_NAME = 'planet4-blocks/carousel-header';
Expand Down Expand Up @@ -52,13 +51,6 @@ export const registerCarouselHeaderBlock = () =>
html: false, // Disable "Edit as HTMl" block option.
},
attributes,
styles: [
{
name: 'fit-height-to-content',
label: __('Fit height to content', 'planet4-blocks-backend'),
isDefault: false,
},
],
edit: CarouselHeaderEditor,
save: ({attributes: saveAttributes}) => {
const markup = renderToString(<div
Expand Down
10 changes: 0 additions & 10 deletions assets/src/scss/blocks/CarouselHeader/CarouselHeaderStyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ $medium-image-height: 600px;
position: relative;
width: 100vw;

&.is-style-fit-height-to-content {
&.block {
display: block;
}

&.block-header {
margin-bottom: 0;
}
}

.carousel-inner {
position: relative;
overflow: visible;
Expand Down

0 comments on commit da2a50b

Please sign in to comment.