diff --git a/assets/src/editorIndex.js b/assets/src/editorIndex.js index 910830b111..3a7e736202 100644 --- a/assets/src/editorIndex.js +++ b/assets/src/editorIndex.js @@ -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: 🔗, }); diff --git a/assets/src/styles/blocks.scss b/assets/src/styles/blocks.scss index f16f1b07e2..7dbd3619e7 100644 --- a/assets/src/styles/blocks.scss +++ b/assets/src/styles/blocks.scss @@ -59,4 +59,4 @@ } // Variations -@import "../variations/expanded-link"; +@import "../variations/stretched-link"; diff --git a/assets/src/styles/editorStyle.scss b/assets/src/styles/editorStyle.scss index 3073d21902..0939513f2c 100644 --- a/assets/src/styles/editorStyle.scss +++ b/assets/src/styles/editorStyle.scss @@ -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"; diff --git a/assets/src/variations/expanded-link/edit.scss b/assets/src/variations/stretched-link/edit.scss similarity index 66% rename from assets/src/variations/expanded-link/edit.scss rename to assets/src/variations/stretched-link/edit.scss index 024e6c5867..205dd5ac81 100644 --- a/assets/src/variations/expanded-link/edit.scss +++ b/assets/src/variations/stretched-link/edit.scss @@ -1,4 +1,4 @@ -.is-style-expand-link { +.is-style-stretched-link { outline: 1px dashed grey; outline-offset: 2px; } diff --git a/assets/src/variations/expanded-link/index.scss b/assets/src/variations/stretched-link/index.scss similarity index 91% rename from assets/src/variations/expanded-link/index.scss rename to assets/src/variations/stretched-link/index.scss index ff4d0eb3bb..2d20a4f142 100644 --- a/assets/src/variations/expanded-link/index.scss +++ b/assets/src/variations/stretched-link/index.scss @@ -1,4 +1,4 @@ -.is-style-expand-link { +.is-style-stretched-link { position: relative; width: fit-content; margin: auto;