-
Notifications
You must be signed in to change notification settings - Fork 57
Enable alignment toolbar for verse block #2037
Copy link
Copy link
Closed
Labels
Description
Description
On mobile, the verse block (which is currently only enabled for debug builds) does not display text alignment options.
Steps to Reproduce
- Add a verse block to a post
- Observe the that the toolbar (located above the keyboard) does not display alignment options
Expected Behavior
Text alignment options should be displayed for the verse block, similar to how they are displayed for other blocks such as the paragraph block.
Screenshots
| iOS | Android |
|---|---|
![]() |
![]() |
Additional Information
To do this, first wordpress-mobile/AztecEditor-Android#899 will need to be merged and the following modification made to verse/edit.js:
...
+import { Platform } from '@wordpress/element';
...
+ const isAlignmentToolbarCollapsed = Platform.select( {
+ web: true,
+ native: false,
+ } );
...
+ isCollapsed={ isAlignmentToolbarCollapsed }
...
+ textAlign={ textAlign }
...
Reactions are currently unavailable

