Skip to content

Commit

Permalink
Fix alignment issue with the comment edit link (#40584)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan authored Apr 26, 2022
1 parent 59072a5 commit d8fd70c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/block-library/src/comment-edit-link/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ function render_block_core_comment_edit_link( $attributes, $content, $block ) {

$classes = '';
if ( isset( $attributes['textAlign'] ) ) {
$classes .= 'has-text-align-' . esc_attr( $attributes['textAlign'] );
}
if ( isset( $attributes['fontSize'] ) ) {
$classes .= 'has-' . esc_attr( $attributes['fontSize'] ) . '-font-size';
$classes .= 'has-text-align-' . $attributes['textAlign'];
}

$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );
Expand Down

0 comments on commit d8fd70c

Please sign in to comment.