Skip to content

Commit

Permalink
Another round of __next40pxDefaultSize controls (#56022)
Browse files Browse the repository at this point in the history
* ReusableBlockEdit

* __next40pxDefaultSize for block-library

* __next40pxDefaultSize for PageAttributesOrder
  • Loading branch information
richtabor committed Nov 13, 2023
1 parent 3c17bb2 commit ec688be
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block-editor/src/hooks/anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function BlockEditAnchorControl( { blockName, attributes, setAttributes } ) {
const textControl = (
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
className="html-anchor-control"
label={ __( 'HTML anchor' ) }
help={
Expand Down
2 changes: 2 additions & 0 deletions packages/block-editor/src/hooks/block-rename-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function RenameModal( { blockName, originalBlockName, onClose, onSave } ) {
<VStack spacing="3">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
value={ editedBlockName }
label={ __( 'Block name' ) }
hideLabelFromVision={ true }
Expand Down Expand Up @@ -130,6 +131,7 @@ function BlockRenameControl( props ) {
<InspectorControls group="advanced">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'Block name' ) }
value={ customName || '' }
onChange={ onChange }
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/src/hooks/custom-class-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function CustomClassNameControls( { attributes, setAttributes } ) {
<InspectorControls group="advanced">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
autoComplete="off"
label={ __( 'Additional CSS class(es)' ) }
value={ attributes.className || '' }
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ export default function ReusableBlockEdit( {
<InspectorControls>
<PanelBody>
<TextControl
__nextHasNoMarginBottom
label={ __( 'Name' ) }
value={ title }
onChange={ setTitle }
__nextHasNoMarginBottom
__next40pxDefaultSize
/>
</PanelBody>
</InspectorControls>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function CommentsInspectorControls( {
<InspectorControls group="advanced">
<SelectControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'HTML element' ) }
options={ [
{ label: __( 'Default (<div>)' ), value: 'div' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ export default function CoverInspectorControls( {
<InspectorControls group="advanced">
<SelectControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'HTML element' ) }
options={ [
{ label: __( 'Default (<div>)' ), value: 'div' },
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/group/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function GroupEditControls( { tagName, onSelectTagName } ) {
<InspectorControls group="advanced">
<SelectControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'HTML element' ) }
options={ [
{ label: __( 'Default (<div>)' ), value: 'div' },
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/query/edit/query-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default function QueryContent( {
<InspectorControls group="advanced">
<SelectControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'HTML element' ) }
options={ [
{ label: __( 'Default (<div>)' ), value: 'div' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export function TemplatePartAdvancedControls( {
) }
<SelectControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'HTML element' ) }
options={ [
{
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/page-attributes/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function PageAttributesOrder() {
<Flex>
<FlexBlock>
<NumberControl
__next40pxDefaultSize
label={ __( 'Order' ) }
value={ value }
onChange={ setUpdatedOrder }
Expand Down

0 comments on commit ec688be

Please sign in to comment.