Skip to content

Commit

Permalink
Use wp-block-widget-textarea class
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Sep 15, 2020
1 parent 1ee3626 commit 03a239f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/class-wp-widget-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function update( $new_instance, $old_instance ) {
public function form( $instance ) {
$instance = wp_parse_args( (array) $instance, $this->default_instance );
?>
<textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" rows="6" cols="50" class="widefat text wp-block-textarea"><?php echo esc_textarea( $instance['content'] ); ?></textarea>
<textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" rows="6" cols="50" class="widefat text wp-block-widget-textarea"><?php echo esc_textarea( $instance['content'] ); ?></textarea>
<?php
}

Expand Down
2 changes: 1 addition & 1 deletion lib/widgets-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function gutenberg_widgets_init( $hook ) {
wp_enqueue_style( 'wp-block-library-theme' );
wp_add_inline_style(
'wp-block-library-theme',
'.wp-block-textarea { width: 100%; min-height: 5em; margin: 8px 0 16px 0; }'
'.wp-block-widget-textarea { width: 100%; min-height: 5em; margin: 8px 0 16px 0; }'
);
return;
}
Expand Down

0 comments on commit 03a239f

Please sign in to comment.