From 8cdba4b5f460ed06c7b3c10b6f48bfb0597cf9b3 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Thu, 14 Feb 2019 12:10:03 -0500 Subject: [PATCH] Rename default block styles to "Default" (#13670) 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 3b8b028e9ad10f..9c92a4cda68283 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 3bbcec5b88d866..b7782b68a0551f 100644 --- a/packages/block-library/src/pullquote/index.js +++ b/packages/block-library/src/pullquote/index.js @@ -69,7 +69,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 525042540a2cbc..6a2506eb5f2e0f 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 adcc34297d2ff1..f802bec8364ad8 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 af53386b40f9a1..6cf466f50dc36a 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' ) }, ],