-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to make use of 'BlockAlignmentControl'
With this commit, the 'BottomSheetSelectControl' component is replaced to make use of 'BlockAlignmentControl'. Any code that relies on 'BottomSheetSelectControl' is also removed.
- Loading branch information
Siobhan
committed
Apr 22, 2022
1 parent
b5dbeec
commit 0fe02e6
Showing
2 changed files
with
8 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,3 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { __ } from '@wordpress/i18n'; | ||
import { | ||
alignNone, | ||
positionCenter, | ||
positionLeft, | ||
positionRight, | ||
} from '@wordpress/icons'; | ||
|
||
export const MIN_EXCERPT_LENGTH = 10; | ||
export const MAX_EXCERPT_LENGTH = 100; | ||
export const MAX_POSTS_COLUMNS = 6; | ||
|
||
export const BLOCK_ALIGNMENTS_CONTROLS = [ | ||
{ value: undefined, label: __( 'None' ), icon: alignNone }, | ||
{ value: 'left', label: __( 'Align left' ), icon: positionLeft }, | ||
{ | ||
value: 'center', | ||
label: __( 'Align center' ), | ||
icon: positionCenter, | ||
}, | ||
{ value: 'right', label: __( 'Align right' ), icon: positionRight }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters