Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search block: update alignment and icon button width #54773

Merged
merged 3 commits into from Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/block-library/src/search/edit.js
Expand Up @@ -345,6 +345,7 @@ export default function SearchEdit( {

{ ! buttonUseIcon && (
<RichText
tagName="button"
className={ buttonClasses }
style={ buttonStyles }
aria-label={ __( 'Button text' ) }
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/search/style.scss
Expand Up @@ -55,8 +55,6 @@ $button-spacing-y: math.div($grid-unit-15, 2); // 6px
margin-left: 0;
// Prevent unintended text wrapping.
flex-shrink: 0;
// Ensure minimum input field width in small viewports.
max-width: calc(100% - 100px);
}
}

Expand Down