Skip to content

Commit

Permalink
Improve label for multiple additional css classes (#15634)
Browse files Browse the repository at this point in the history
* Improve label for multiple additional css classes

Add clarity around additional css classes so users know that multiple
classes are supported and the proper separator between classes.

* Add "(es)" so new label is "Additional CSS Class(es)"

* Add help attribute with help message: "Space separate multiple classes."

* Update copy per review
  • Loading branch information
mkaz authored May 15, 2019
1 parent 6e6a933 commit aab71fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/custom-class-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ export const withInspectorControl = createHigherOrderComponent( ( BlockEdit ) =>
<BlockEdit { ...props } />
<InspectorAdvancedControls>
<TextControl
label={ __( 'Additional CSS Class' ) }
label={ __( 'Additional CSS Class(es)' ) }
value={ props.attributes.className || '' }
onChange={ ( nextValue ) => {
props.setAttributes( {
className: nextValue !== '' ? nextValue : undefined,
} );
} }
help={ __( 'Separate multiple classes with spaces.' ) }
/>
</InspectorAdvancedControls>
</>
Expand Down

0 comments on commit aab71fc

Please sign in to comment.