Skip to content

Commit

Permalink
Improve approach
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Nov 14, 2021
1 parent c971d7d commit 85635f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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 {string|number|null} 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.
*/
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={ null }
__unstableInputWidth={ '100%' }
/>
);
}
Expand Down

0 comments on commit 85635f5

Please sign in to comment.