Skip to content

Commit

Permalink
BoxControl: Add lint rule for 40px size prop usage (WordPress#65341)
Browse files Browse the repository at this point in the history
* BoxControl: Add lint rule for 40px size prop usage

* Add to readme

Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 46d898e commit d32a5b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ module.exports = {
...[
'BorderBoxControl',
'BorderControl',
'BoxControl',
'ComboboxControl',
'CustomSelectControl',
'DimensionControl',
Expand Down
7 changes: 7 additions & 0 deletions packages/components/src/box-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,10 @@ A handler for onMouseOver events.
A handler for onMouseOut events.

- Required: No

### `__next40pxDefaultSize`: `boolean`

Start opting into the larger default size that will become the default size in a future version.

- Required: No
- Default: `false`

0 comments on commit d32a5b6

Please sign in to comment.