Skip to content

Commit

Permalink
Removes title case from alignments
Browse files Browse the repository at this point in the history
In response to #16764
  • Loading branch information
Tammie Lister committed Nov 26, 2019
1 parent 3cbb291 commit 09252bd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import { Toolbar } from '@wordpress/components';
const DEFAULT_ALIGNMENT_CONTROLS = [
{
icon: 'editor-alignleft',
title: __( 'Align Text Left' ),
title: __( 'Align text left' ),
align: 'left',
},
{
icon: 'editor-aligncenter',
title: __( 'Align Text Center' ),
title: __( 'Align text center' ),
align: 'center',
},
{
icon: 'editor-alignright',
title: __( 'Align Text Right' ),
title: __( 'Align text right' ),
align: 'right',
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ exports[`AlignmentToolbar should match snapshot 1`] = `
"icon": "editor-alignleft",
"isActive": true,
"onClick": [Function],
"title": "Align Text Left",
"title": "Align text left",
},
Object {
"align": "center",
"icon": "editor-aligncenter",
"isActive": false,
"onClick": [Function],
"title": "Align Text Center",
"title": "Align text center",
},
Object {
"align": "right",
"icon": "editor-alignright",
"isActive": false,
"onClick": [Function],
"title": "Align Text Right",
"title": "Align text right",
},
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ import { withBlockEditContext } from '../block-edit/context';
const BLOCK_ALIGNMENTS_CONTROLS = {
left: {
icon: 'align-left',
title: __( 'Align Left' ),
title: __( 'Align left' ),
},
center: {
icon: 'align-center',
title: __( 'Align Center' ),
title: __( 'Align center' ),
},
right: {
icon: 'align-right',
title: __( 'Align Right' ),
title: __( 'Align right' ),
},
wide: {
icon: 'align-wide',
title: __( 'Wide Width' ),
title: __( 'Wide width' ),
},
full: {
icon: 'align-full-width',
title: __( 'Full Width' ),
title: __( 'Full width' ),
},
};

Expand Down
10 changes: 5 additions & 5 deletions packages/e2e-tests/specs/editor/plugins/align-hook.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ describe( 'Align Hook Works As Expected', () => {
const BLOCK_NAME = 'Test Align True';

createShowsTheExpectedButtonsTest( BLOCK_NAME, [
'Align Left',
'Align Center',
'Align Right',
'Wide Width',
'Full Width',
'Align left',
'Align center',
'Align right',
'Wide width',
'Full width',
] );

createDoesNotApplyAlignmentByDefaultTest( BLOCK_NAME );
Expand Down

0 comments on commit 09252bd

Please sign in to comment.