Skip to content

Commit

Permalink
Add back className
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Sep 16, 2022
1 parent 633f0a5 commit 3e98495
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* External dependencies
*/
import classnames from 'classnames';

/**
* WordPress dependencies
*/
Expand Down Expand Up @@ -39,15 +41,21 @@ const TEXT_TRANSFORMS = [
/**
* Control to facilitate text transform selections.
*
* @param {Object} props Component props.
* @param {string} props.value Currently selected text transform.
* @param {Function} props.onChange Handles change in text transform selection.
* @param {Object} props Component props.
* @param {string} props.className Class name to add to the control.
* @param {string} props.value Currently selected text transform.
* @param {Function} props.onChange Handles change in text transform selection.
*
* @return {WPElement} Text transform control.
*/
export default function TextTransformControl( { value, onChange } ) {
export default function TextTransformControl( { className, value, onChange } ) {
return (
<fieldset className="block-editor-text-transform-control">
<fieldset
className={ classnames(
'block-editor-text-transform-control',
className
) }
>
<BaseControl.VisualLabel as="legend">
{ __( 'Letter case' ) }
</BaseControl.VisualLabel>
Expand Down

0 comments on commit 3e98495

Please sign in to comment.