Skip to content

Commit

Permalink
Letter spacing: update label copy (#36385)
Browse files Browse the repository at this point in the history
* Overwrite default component view label styles so that the Typography control labels are uniform
Organize imports alphabetically
Remove hyphen from label

* Rolling back margin changes since they'll be fixed in #36387

* Remove classname
  • Loading branch information
ramonjd authored Nov 16, 2021
1 parent 79ad6b6 commit 09ee3ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function LetterSpacingControl( {
} );
return (
<UnitControl
label={ __( 'Letter-spacing' ) }
label={ __( 'Letter spacing' ) }
value={ value }
__unstableInputWidth={ __unstableInputWidth }
units={ units }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export function TypographyPanel( props ) {
<ToolsPanelItem
className="single-column"
hasValue={ () => hasLetterSpacingValue( props ) }
label={ __( 'Letter-spacing' ) }
label={ __( 'Letter spacing' ) }
onDeselect={ () => resetLetterSpacing( props ) }
isShownByDefault={ defaultControls?.letterSpacing }
resetAllFilter={ createResetAllFilter( 'letterSpacing' ) }
Expand Down
6 changes: 3 additions & 3 deletions packages/block-editor/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
@import "./components/default-style-picker/style.scss";
@import "./components/duotone-control/style.scss";
@import "./components/font-appearance-control/style.scss";
@import "./components/justify-content-control/style.scss";
@import "./components/link-control/style.scss";
@import "./components/line-height-control/style.scss";
@import "./components/image-size-control/style.scss";
@import "./components/inner-blocks/style.scss";
@import "./components/inserter-list-item/style.scss";
@import "./components/justify-content-control/style.scss";
@import "./components/line-height-control/style.scss";
@import "./components/link-control/style.scss";
@import "./components/list-view/style.scss";
@import "./components/media-replace-flow/style.scss";
@import "./components/media-placeholder/style.scss";
Expand Down

0 comments on commit 09ee3ab

Please sign in to comment.