Skip to content

Commit

Permalink
Make buttons use the 32 pixels compat size.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 1, 2024
1 parent a218747 commit 79c124e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ If passed, children are rendered after the input.
label={ __( 'Submit' ) }
icon={ keyboardReturn }
className="block-editor-link-control__search-submit"
size="compact"
/>
</HStack>
</LinkControlSearchInput>
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/src/components/link-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ function LinkControl( {
icon={ keyboardReturn }
className="block-editor-link-control__search-submit"
aria-disabled={ isDisabled }
size="compact"
/>
</div>
) }
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ $block-editor-link-control-number-of-actions: 1;

.block-editor-link-control__search-enter {
position: absolute;
right: 19px; // specific to place the button properly.
top: 3px;
right: 21px; // specific to place the button properly.
top: 5px;

svg {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/src/components/url-popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function URLPopover( {
label={ __( 'Link settings' ) }
onClick={ toggleSettingsVisibility }
aria-expanded={ isSettingsExpanded }
size="compact"
/>
) }
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function LinkEditor( {
icon={ keyboardReturn }
label={ __( 'Apply' ) }
type="submit"
size="compact"
/>
</form>
);
Expand Down

0 comments on commit 79c124e

Please sign in to comment.