Skip to content

Commit

Permalink
Standardise inserters
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsmason committed Sep 4, 2024
1 parent 46548d1 commit 28cf889
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dist/accordion/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => '207255c7b8d69454060e');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-i18n'), 'version' => '44cf5a7d3c984f542114');
2 changes: 1 addition & 1 deletion dist/accordion/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/accordion/style-index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/carousel/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd00ff3f5faa94a8ac399');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'c587dec15c9e8c42c947');
2 changes: 1 addition & 1 deletion dist/carousel/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pulsar-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: A collection of blocks we use at eighteen73.
* Requires at least: 6.3
* Requires PHP: 7.4
* Version: 0.7.0
* Version: 0.7.1
* Author: eighteen73
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
4 changes: 0 additions & 4 deletions src/accordion/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import { useSelect } from '@wordpress/data';

import { __ } from '@wordpress/i18n';

import { plus } from '@wordpress/icons';

import SingleBlockTypeAppender from '../components/single-block-type-appender';

const ALLOWED_BLOCKS = ['pulsar/accordion-item'];
Expand Down Expand Up @@ -140,8 +138,6 @@ export default function Edit({
<SingleBlockTypeAppender
onClickAfter={() => {}}
variant="secondary"
icon={plus}
iconPosition="left"
text={__('Add item', 'pulsar-blocks')}
allowedBlock="pulsar/accordion-item"
style={{ width: '100%', justifyContent: 'center' }}
Expand Down
12 changes: 6 additions & 6 deletions src/accordion/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
gap: var(--gap);
padding: 0;

.wp-block-pulsar-accordion__heading {
&__heading {
margin: 0;
padding: 0;

+ .wp-block-pulsar-accordion__panel {
+ #{$block}__panel {
margin-top: 0;
}
}

.wp-block-pulsar-accordion__trigger {
&__trigger {
align-items: center;
background: none;
border: var(--border);
Expand All @@ -37,11 +37,11 @@
width: 100%;
}

.wp-block-pulsar-accordion__title {
&__title {
width: 100%;
}

.wp-block-pulsar-accordion__panel {
&__panel {
border: var(--border);
border-top: 0;
display: none;
Expand All @@ -54,7 +54,7 @@
}
}

.wp-block-pulsar-accordion__icon {
&__icon {
background-color: currentcolor;
height: 12px;
mask-image: url("../../assets/arrow-down.svg");
Expand Down
3 changes: 2 additions & 1 deletion src/carousel/components/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default function CarouselPlaceholder({
>
<SingleBlockTypeAppender
onClickAfter={() => {}}
variant="secondary"
variant="primary"
text={__('Add slide', 'pulsar-blocks')}
allowedBlock={allowedBlock}
clientId={clientId}
isEnabled={true}
Expand Down

0 comments on commit 28cf889

Please sign in to comment.