Skip to content

Commit

Permalink
Make it center
Browse files Browse the repository at this point in the history
  • Loading branch information
artpi committed Aug 23, 2019
1 parent 04fa831 commit d4e947e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions extensions/blocks/recurring-payments/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

.wp-block-jetpack-recurring-payments {
font-family: $default-font;
width: 100%;

.components-base-control__label {
text-align: left;
Expand Down
2 changes: 1 addition & 1 deletion extensions/blocks/recurring-payments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const settings = {
},
align: {
type: 'string',
default: 'left',
default: 'center',
},
},
edit,
Expand Down
2 changes: 2 additions & 0 deletions modules/memberships/class-jetpack-memberships.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ public function render_button( $attrs ) {
}
if ( isset( $attrs['align'] ) ) {
array_push( $classes, 'align' . $attrs['align'] );
} else {
array_push( $classes, 'aligncenter' );
}
if ( isset( $attrs['submitButtonText'] ) ) {
$data['button_label'] = $attrs['submitButtonText'];
Expand Down

0 comments on commit d4e947e

Please sign in to comment.