Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions packages/block-library/src/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
"type": "string",
"default": "button"
},
"textAlign": {
"type": "string"
},
"url": {
"type": "string",
"source": "attribute",
Expand Down Expand Up @@ -106,7 +103,8 @@
"__experimentalWritingMode": true,
"__experimentalDefaultControls": {
"fontSize": true
}
},
"textAlign": true
},
"reusable": false,
"shadow": {
Expand Down
11 changes: 0 additions & 11 deletions packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
__experimentalToggleGroupControlOption as ToggleGroupControlOption,
} from '@wordpress/components';
import {
AlignmentControl,
BlockControls,
InspectorControls,
RichText,
Expand All @@ -44,7 +43,6 @@ import {
__experimentalGetShadowClassesAndStyles as useShadowProps,
__experimentalGetElementClassName,
store as blockEditorStore,
useBlockEditingMode,
getTypographyClassesAndStyles as useTypographyProps,
useSettings,
} from '@wordpress/block-editor';
Expand Down Expand Up @@ -217,7 +215,6 @@ function ButtonEdit( props ) {
ref: useMergeRefs( [ setPopoverAnchor, ref ] ),
onKeyDown,
} );
const blockEditingMode = useBlockEditingMode();

const [ isEditingURL, setIsEditingURL ] = useState( false );
const isURLSet = !! url;
Expand Down Expand Up @@ -375,14 +372,6 @@ function ButtonEdit( props ) {
/>
</div>
<BlockControls group="block">
{ blockEditingMode === 'default' && (
<AlignmentControl
value={ textAlign }
onChange={ ( nextAlign ) => {
setAttributes( { textAlign: nextAlign } );
} }
/>
) }
{ ! isURLSet && isLinkTag && ! lockUrlControls && (
<ToolbarButton
name="link"
Expand Down