Skip to content

Commit

Permalink
Use className prop instead of hard-coded className (#20164)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan authored and jorgefilipecosta committed Feb 17, 2020
1 parent b633a7d commit 80f5df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/group/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { compose } from '@wordpress/compose';
import { InnerBlocks, __experimentalUseColors } from '@wordpress/block-editor';
import { useRef } from '@wordpress/element';

function GroupEdit( { hasInnerBlocks } ) {
function GroupEdit( { hasInnerBlocks, className } ) {
const ref = useRef();
const {
TextColor,
Expand All @@ -28,7 +28,7 @@ function GroupEdit( { hasInnerBlocks } ) {
{ InspectorControlsColorPanel }
<BackgroundColor>
<TextColor>
<div className="wp-block-group" ref={ ref }>
<div className={ className } ref={ ref }>
<div className="wp-block-group__inner-container">
<InnerBlocks
renderAppender={
Expand Down

0 comments on commit 80f5df3

Please sign in to comment.