Skip to content

Commit

Permalink
simplify LegacyWrapper & remove !important from styles
Browse files Browse the repository at this point in the history
  • Loading branch information
danalvrz committed Jun 4, 2024
1 parent 811a9ff commit 34107cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/volto-separator-block/src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import cx from 'classnames';
import { MaybeWrap } from '@plone/volto/components';

const LegacyWrapper = (props) => (
<div className={cx('block separator', props.className)}>{props.children}</div>
const LegacyWrapper = ({ className, children }) => (
<div className={cx('block separator', className)}>{children}</div>
);

const SeparatorView = ({ data, isEditMode, className, blocksConfig }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/volto-separator-block/src/theme/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
clear: both;

&:not(.inner):not([role='presentation']) {
padding: 25px 0 !important;
padding: 25px 0;
}

.line {
Expand Down

0 comments on commit 34107cb

Please sign in to comment.