Skip to content

Commit

Permalink
Merge pull request #364 from bu-ist/bug/355-wp5.8-collapsible-block-g…
Browse files Browse the repository at this point in the history
…enerated-anchors-issues

Bug/355 wp5.8 collapsible block generated anchors issues
  • Loading branch information
acketon authored Jun 7, 2024
2 parents 371d3b2 + f6a908c commit 2bda633
Show file tree
Hide file tree
Showing 8 changed files with 402 additions and 47 deletions.
2 changes: 1 addition & 1 deletion dist/blocks.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react'), 'version' => '44f9dcda4cfcbf76e6c5');
<?php return array('dependencies' => array('react'), 'version' => 'cf7c07081ea2c5ccd56c');
2 changes: 1 addition & 1 deletion dist/blocks.css.map

Large diffs are not rendered by default.

214 changes: 193 additions & 21 deletions dist/blocks.js

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

2 changes: 1 addition & 1 deletion dist/blocks.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style-blocks.css.map

Large diffs are not rendered by default.

22 changes: 12 additions & 10 deletions src/blocks/collapsible-control/collapsible-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,18 @@ registerBlockType( 'bu/collapsible-control', {

<Fragment>
<p {...blockProps}>
<RichText
tagName="button"
className={togglebuttonclasses}
placeholder={ __( 'Toggle Text' ) }
value={ text }
onChange={ ( value ) => setAttributes( { text: value } ) }
formattingControls={ [ 'bold', 'italic' ] }
withoutInteractiveFormatting
keepPlaceholderOnFocus
/>
<button>
<RichText
tagName="span"
className={togglebuttonclasses}
placeholder={ __( 'Toggle Text' ) }
value={ text }
onChange={ ( value ) => setAttributes( { text: value } ) }
formattingControls={ [ 'bold', 'italic' ] }
withoutInteractiveFormatting
keepPlaceholderOnFocus
/>
</button>
</p>
<InspectorControls>
<PanelBody title={ __( 'Control Options' ) }>
Expand Down
Loading

0 comments on commit 2bda633

Please sign in to comment.