Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update design of FontSizePicker when withSlider is set #44598

Merged
merged 10 commits into from
Oct 24, 2022
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