File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ const TOOLBAR_ALIGN_OPTIONS = ALIGN_OPTIONS.map( control => {
7777const ALIGNMENT_CONTROLS_DESKTOP = [
7878 {
7979 title : __ ( 'Horizontal' , i18n ) ,
80- value : '' ,
80+ value : 'horizontal ' ,
8181 } ,
8282 {
8383 title : __ ( 'Vertical' , i18n ) ,
@@ -134,7 +134,7 @@ const Edit = props => {
134134 ] )
135135
136136 let contentAlignControls = null
137- if ( attributes . buttonAlign === '' ) {
137+ if ( attributes . buttonAlign === 'horizontal ' ) {
138138 contentAlignControls = ALIGN_OPTIONS
139139 }
140140 if ( deviceType === 'Tablet' || deviceType === 'Mobile' ) {
Original file line number Diff line number Diff line change @@ -50,9 +50,10 @@ blockStyles.addBlockStyles( 'buttonAlign', [ {
5050 valuePreCallback : value => {
5151 if ( value === 'vertical' ) {
5252 return 'column'
53+ } else if ( value === 'horizontal' ) {
54+ return 'row'
5355 }
54-
55- return 'row'
56+ return value
5657 } ,
5758} , {
5859 renderIn : 'edit' ,
You can’t perform that action at this time.
0 commit comments