diff --git a/blocks/library/button/editor.scss b/blocks/library/button/editor.scss index 2dda2a862b1027..1a7551cee2194c 100644 --- a/blocks/library/button/editor.scss +++ b/blocks/library/button/editor.scss @@ -26,3 +26,36 @@ $blocks-button__height: 46px; cursor: text; } } + +.blocks-button__inline-link { + background: #fff; + width: 280px; + display: flex; + flex-wrap: wrap; + align-items: center; + font-family: $default-font; + font-size: $default-font-size; + line-height: $default-line-height; + + .blocks-url-input { + width: auto; + } + + .dashicon { + color: $dark-gray-100; + } + + .blocks-url-input input[type=text]::placeholder { + color: $dark-gray-100; + } + + [data-align="center"] & { + margin-left: auto; + margin-right: auto; + } + + [data-align="right"] & { + margin-left: auto; + margin-right: 0; + } +} diff --git a/blocks/library/button/index.js b/blocks/library/button/index.js index 0d20661df9b294..666e244d4e0629 100644 --- a/blocks/library/button/index.js +++ b/blocks/library/button/index.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { IconButton, PanelBody } from '@wordpress/components'; +import { Dashicon, IconButton, PanelBody } from '@wordpress/components'; /** * Internal dependencies @@ -93,17 +93,6 @@ registerBlockType( 'core/button', { } } keepPlaceholderOnFocus /> - { focus && -
- } { focus &&