Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,6 @@ export default function Image( {
}
>
<CheckboxControl
__nextHasNoMarginBottom
label={ __( 'Mark as decorative' ) }
checked={ !! isDecorative }
onChange={ updateIsDecorative }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-featured-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ export default function PostFeaturedImageEdit( {
}
>
<ToggleControl
__nextHasNoMarginBottom
label={ __( 'Make image a link' ) }
onChange={ () =>
setAttributes( { isLink: ! isLink } )
Expand Down
4 changes: 4 additions & 0 deletions tools/eslint/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ const restrictedSyntax = [
selector: 'JSXAttribute[name.name="id"][value.type="Literal"]',
message: 'Do not use string literals for IDs; use useId hook instead.',
},
{
selector: 'JSXAttribute[name.name="__nextHasNoMarginBottom"]',
message: 'The `__nextHasNoMarginBottom` prop is no longer needed.',
},
{
selector:
'CallExpression[callee.name="withDispatch"] > :function > BlockStatement > :not(VariableDeclaration,ReturnStatement)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default function QuickDraftContentField< Item >( {
return (
<Stack direction="column" className={ styles.root }>
<TextareaControl
__nextHasNoMarginBottom
label={ field.label }
hideLabelFromVision={ hideLabelFromVision }
value={ value ?? '' }
Expand Down
Loading