Skip to content

Commit

Permalink
Rename default block styles to "Default" (#13670)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kjellr authored and youknowriad committed Mar 6, 2019
1 parent 77a8c18 commit 731ee95
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) },
],
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/pullquote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) },
],

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/quote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) },
],

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/separator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) },
],
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) },
],

Expand Down

0 comments on commit 731ee95

Please sign in to comment.