Skip to content

Commit

Permalink
FormTokenField: Add lint rule for 40px size prop usage (#64590)
Browse files Browse the repository at this point in the history
* Fix in Query Loop block

* Add lint rule

Co-authored-by: mirka <[email protected]>
Co-authored-by: ciampo <[email protected]>
  • Loading branch information
3 people authored Aug 19, 2024
1 parent fdbc84c commit 515d0d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ module.exports = {
'CustomSelectControl',
'DimensionControl',
'FontSizePicker',
'FormTokenField',
'NumberControl',
'RangeControl',
'ToggleGroupControl',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function ParentControl( { parents, postType, onChange } ) {
};
return (
<FormTokenField
__next40pxDefaultSize
label={ __( 'Parents' ) }
value={ value }
onInputChange={ debouncedSearch }
Expand Down

0 comments on commit 515d0d9

Please sign in to comment.