Skip to content

Commit

Permalink
Rename to Stretched Link like the Bootstrap one
Browse files Browse the repository at this point in the history
  • Loading branch information
mleray committed May 17, 2022
1 parent 305fb65 commit a3077e3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions assets/src/editorIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ const { registerBlockVariation } = wp.blocks;
const { __ } = wp.i18n;

registerBlockVariation('core/group', {
name: 'group-expanded-link',
title: __('Expanded Link', 'planet4-blocks-backend'),
name: 'group-stretched-link',
title: __('Stretched Link', 'planet4-blocks-backend'),
description: __('Make the entire block contents clickable, using the first link inside.', 'planet4-blocks-backend'),
attributes: { className: 'is-style-expand-link' },
attributes: { className: 'is-style-stretched-link' },
scope: ['inserter', 'transform'],
isActive: (blockAttributes) => {
return blockAttributes.className === 'is-style-expand-link';
return blockAttributes.className === 'is-style-stretched-link';
},
icon: <Fragment>🔗</Fragment>,
});
2 changes: 1 addition & 1 deletion assets/src/styles/blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
}

// Variations
@import "../variations/expanded-link";
@import "../variations/stretched-link";
2 changes: 1 addition & 1 deletion assets/src/styles/editorStyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@import "blocks/TakeActionBoxout/edit";
@import "blocks/CookiesEditor";
@import "blocks/core-overrides/HeadingEditor";
@import "../variations/expanded-link/edit";
@import "../variations/stretched-link/edit";

@import "components/LayoutSelector";
@import "components/EmptyMessage";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.is-style-expand-link {
.is-style-stretched-link {
outline: 1px dashed grey;
outline-offset: 2px;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.is-style-expand-link {
.is-style-stretched-link {
position: relative;
width: fit-content;
margin: auto;
Expand Down

0 comments on commit a3077e3

Please sign in to comment.