23 lines
459 B
JavaScript
23 lines
459 B
JavaScript
import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks';
|
|
|
|
import {domReady} from '@scripts/components';
|
|
|
|
/**
|
|
* Customize block styles
|
|
*/
|
|
domReady(() => {
|
|
unregisterBlockStyle('core/button', 'outline');
|
|
|
|
registerBlockStyle('core/button', {
|
|
name: 'outline',
|
|
label: 'Outline',
|
|
});
|
|
});
|
|
|
|
/**
|
|
* Accept module updates
|
|
*
|
|
* @see https://webpack.js.org/api/hot-module-replacement
|
|
*/
|
|
import.meta.webpackHot?.accept(console.error);
|