From 87cb861dbd5ba20954d908584e7a0b627c27e859 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Tue, 16 Jul 2024 03:34:24 +0900 Subject: [PATCH] FontSizePicker: Fix docs for default `units` (#63577) Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla --- packages/components/src/font-size-picker/README.md | 2 +- packages/components/src/font-size-picker/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/font-size-picker/README.md b/packages/components/src/font-size-picker/README.md index 2a342d3de9114d..790468acc6c1fa 100644 --- a/packages/components/src/font-size-picker/README.md +++ b/packages/components/src/font-size-picker/README.md @@ -92,7 +92,7 @@ Size of the control. Available units for custom font size selection. - Required: No -- Default: `[ 'px', 'em', 'rem' ]` +- Default: `[ 'px', 'em', 'rem', 'vw', 'vh' ]` ### `value`: `number | string` diff --git a/packages/components/src/font-size-picker/types.ts b/packages/components/src/font-size-picker/types.ts index 0072c47df6f052..39016849fd9f95 100644 --- a/packages/components/src/font-size-picker/types.ts +++ b/packages/components/src/font-size-picker/types.ts @@ -29,7 +29,7 @@ export type FontSizePickerProps = { /** * Available units for custom font size selection. * - * @default `[ 'px', 'em', 'rem' ]` + * @default [ 'px', 'em', 'rem', 'vw', 'vh' ] */ units?: string[]; /**