Skip to content

Commit

Permalink
Typography Panel: Make letter spacing jsDoc and prop use consistent (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Nov 15, 2021
1 parent cd8aaf8 commit 5d98ae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import useSetting from '../../components/use-setting';
/**
* Control for letter-spacing.
*
* @param {Object} props Component props.
* @param {string} props.value Currently selected letter-spacing.
* @param {Function} props.onChange Handles change in letter-spacing selection.
* @param {boolean} props.__unstableInputWidth Input width to pass through to inner UnitControl.
* @param {Object} props Component props.
* @param {string} props.value Currently selected letter-spacing.
* @param {Function} props.onChange Handles change in letter-spacing selection.
* @param {string|number|undefined} props.__unstableInputWidth Input width to pass through to inner UnitControl. Should be a valid CSS value.
*
* @return {WPElement} Letter-spacing control.
* @return {WPElement} Letter-spacing control.
*/
export default function LetterSpacingControl( {
value,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/letter-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function LetterSpacingEdit( props ) {
<LetterSpacingControl
value={ style?.typography?.letterSpacing }
onChange={ onChange }
__unstableInputWidth={ false }
__unstableInputWidth={ '100%' }
/>
);
}
Expand Down

0 comments on commit 5d98ae6

Please sign in to comment.