From 5a0090d5f395ced647dccc16776156e1897e7a92 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Tue, 5 Feb 2019 08:46:42 -0500 Subject: [PATCH] Rename default block styles to "Default" Resolves #13660. This aligns the classname with the actual name we're using in the UI, and also allows for a bit more flexibility for default block styles per theme. --- packages/block-library/src/button/index.js | 2 +- packages/block-library/src/pullquote/index.js | 2 +- packages/block-library/src/quote/index.js | 2 +- packages/block-library/src/separator/index.js | 2 +- packages/block-library/src/table/index.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/block-library/src/button/index.js b/packages/block-library/src/button/index.js index 5dddccfa760ca..0a3da570c0f6a 100644 --- a/packages/block-library/src/button/index.js +++ b/packages/block-library/src/button/index.js @@ -78,7 +78,7 @@ export const settings = { }, styles: [ - { name: 'default', label: _x( 'Rounded', 'block style' ), isDefault: true }, + { name: 'default', label: _x( 'Default', 'block style' ), isDefault: true }, { name: 'outline', label: __( 'Outline' ) }, { name: 'squared', label: _x( 'Squared', 'block style' ) }, ], diff --git a/packages/block-library/src/pullquote/index.js b/packages/block-library/src/pullquote/index.js index 1dc6126394678..651bd54022b7c 100644 --- a/packages/block-library/src/pullquote/index.js +++ b/packages/block-library/src/pullquote/index.js @@ -66,7 +66,7 @@ export const settings = { attributes: blockAttributes, styles: [ - { name: 'default', label: _x( 'Regular', 'block style' ), isDefault: true }, + { name: 'default', label: _x( 'Default', 'block style' ), isDefault: true }, { name: SOLID_COLOR_STYLE_NAME, label: __( 'Solid Color' ) }, ], diff --git a/packages/block-library/src/quote/index.js b/packages/block-library/src/quote/index.js index 525042540a2cb..6a2506eb5f2e0 100644 --- a/packages/block-library/src/quote/index.js +++ b/packages/block-library/src/quote/index.js @@ -51,7 +51,7 @@ export const settings = { attributes: blockAttributes, styles: [ - { name: 'default', label: _x( 'Regular', 'block style' ), isDefault: true }, + { name: 'default', label: _x( 'Default', 'block style' ), isDefault: true }, { name: 'large', label: _x( 'Large', 'block style' ) }, ], diff --git a/packages/block-library/src/separator/index.js b/packages/block-library/src/separator/index.js index adcc34297d2ff..f802bec8364ad 100644 --- a/packages/block-library/src/separator/index.js +++ b/packages/block-library/src/separator/index.js @@ -19,7 +19,7 @@ export const settings = { keywords: [ __( 'horizontal-line' ), 'hr', __( 'divider' ) ], styles: [ - { name: 'default', label: __( 'Short Line' ), isDefault: true }, + { name: 'default', label: __( 'Default' ), isDefault: true }, { name: 'wide', label: __( 'Wide Line' ) }, { name: 'dots', label: __( 'Dots' ) }, ], diff --git a/packages/block-library/src/table/index.js b/packages/block-library/src/table/index.js index c6221d688c392..dee1f9fe1116e 100644 --- a/packages/block-library/src/table/index.js +++ b/packages/block-library/src/table/index.js @@ -95,7 +95,7 @@ export const settings = { }, styles: [ - { name: 'regular', label: _x( 'Regular', 'block style' ), isDefault: true }, + { name: 'regular', label: _x( 'Default', 'block style' ), isDefault: true }, { name: 'stripes', label: __( 'Stripes' ) }, ],