Skip to content

Commit

Permalink
Docs: Update FontSizePicker README.md to mention the unitless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshupathak95 committed Feb 26, 2025
1 parent 79e66a7 commit a8b6ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/font-size-picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Size of the control.

Available units for custom font size selection.

**Important Note**: For the units property to work, font sizes must be specified as strings with units (e.g., `'12px'` instead of `12`). When font sizes are provided as numbers, the component operates in "unitless mode" where the units property has no effect.
**Note**: For the `units` property to work, the current font size value must be specified as strings with units (e.g., `'12px'` instead of `12`). When the font size is provided as a number, the component operates in "unitless mode" where the `units` property has no effect.

- Required: No
- Default: `[ 'px', 'em', 'rem', 'vw', 'vh' ]`
Expand Down

0 comments on commit a8b6ec5

Please sign in to comment.