Skip to content

Commit

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

* Add lint rule

Co-authored-by: mirka <[email protected]>
Co-authored-by: ciampo <[email protected]>
  • Loading branch information
3 people authored and bph committed Aug 31, 2024
1 parent 50e14ae commit 81e9e48
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 @@ -318,6 +318,7 @@ module.exports = {
'DimensionControl',
'FontSizePicker',
'FormTokenField',
'InputControl',
'NumberControl',
'RangeControl',
'TextControl',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export default function ShadowsEditPanel() {
} }
>
<InputControl
__next40pxDefaultSize
autoComplete="off"
label={ __( 'Name' ) }
placeholder={ __( 'Shadow name' ) }
Expand Down

0 comments on commit 81e9e48

Please sign in to comment.