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 authored and Vagabond User committed Feb 17, 2021
1 parent e45e922 commit 62d4efa
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 @@ -176,7 +176,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 @@ -33,7 +33,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 62d4efa

Please sign in to comment.