diff --git a/.eslintrc.js b/.eslintrc.js index 5a939aeb9173b7..5d1791a7c86ab9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -319,6 +319,7 @@ module.exports = { 'FontSizePicker', 'NumberControl', 'RangeControl', + 'TextControl', 'ToggleGroupControl', ].map( ( componentName ) => ( { // Falsy `__next40pxDefaultSize` without a non-default `size` prop. @@ -328,15 +329,13 @@ module.exports = { ' should have the `__next40pxDefaultSize` prop to opt-in to the new default size.', } ) ), // Temporary rules until all existing components have the `__next40pxDefaultSize` prop. - ...[ 'SelectControl', 'TextControl' ].map( - ( componentName ) => ( { - // Not strict. Allows pre-existing __next40pxDefaultSize={ false } usage until they are all manually updated. - selector: `JSXOpeningElement[name.name="${ componentName }"]:not(:has(JSXAttribute[name.name="__next40pxDefaultSize"])):not(:has(JSXAttribute[name.name="size"]))`, - message: - componentName + - ' should have the `__next40pxDefaultSize` prop to opt-in to the new default size.', - } ) - ), + ...[ 'SelectControl' ].map( ( componentName ) => ( { + // Not strict. Allows pre-existing __next40pxDefaultSize={ false } usage until they are all manually updated. + selector: `JSXOpeningElement[name.name="${ componentName }"]:not(:has(JSXAttribute[name.name="__next40pxDefaultSize"])):not(:has(JSXAttribute[name.name="size"]))`, + message: + componentName + + ' should have the `__next40pxDefaultSize` prop to opt-in to the new default size.', + } ) ), ], }, }, diff --git a/packages/block-editor/src/components/date-format-picker/index.js b/packages/block-editor/src/components/date-format-picker/index.js index edefd6249f1aae..eb269e03ca5abc 100644 --- a/packages/block-editor/src/components/date-format-picker/index.js +++ b/packages/block-editor/src/components/date-format-picker/index.js @@ -150,8 +150,7 @@ function NonDefaultControls( { format, onChange } ) { /> { isCustom && ( { isLinkTag && ( { { submissionMethod !== 'email' && ( { ) } /> ( @@ -44,6 +43,7 @@ export default function Edit( { attributes: { commentId }, setAttributes } ) { /> ); @@ -122,8 +122,7 @@ class PostPublishPanelPostpublish extends Component {

{ ! isScheduled && ( - ) }
@@ -312,7 +312,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc post address