Skip to content
1 change: 1 addition & 0 deletions packages/block-editor/src/hooks/font-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export function FontSizeEdit( props ) {
onChange={ onChange }
value={ fontSizeValue }
withReset={ false }
withSlider
size="__unstable-large"
__nextHasNoMarginBottom
/>
Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/font-size-picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ The current font size value.

### withSlider

If `true`, the UI will contain a slider, instead of a numeric text input field. If `false`, no slider will be present.
If `true`, a slider will be displayed alongside the input field when a custom font size is active. Has no effect when `disableCustomFontSizes` is `true`.

- Type: `Boolean`
- Required: no
- Default: `false`

### withReset

If `true`, a reset button will be displayed alongside the input field when a custom font size is active. Has no effect when `disableCustomFontSizes` or `withSlider` is `true`.
If `true`, a reset button will be displayed alongside the input field when a custom font size is active. Has no effect when `disableCustomFontSizes` is `true`.

- Type: `Boolean`
- Required: no
Expand All @@ -113,4 +113,4 @@ Start opting into the new margin-free styles that will become the default in a f

- Type: `Boolean`
- Required: no
- Default: `false`
- Default: `false`
Loading