Skip to content
Merged
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
10 changes: 8 additions & 2 deletions packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,19 @@ export default function SearchEdit( {
] );

const borderRadius = style?.border?.radius;
const borderProps = useBorderProps( attributes );
let borderProps = useBorderProps( attributes );

// Check for old deprecated numerical border radius. Done as a separate
// check so that a borderRadius style won't overwrite the longhand
// per-corner styles.
if ( typeof borderRadius === 'number' ) {
borderProps.style.borderRadius = `${ borderRadius }px`;
borderProps = {
...borderProps,
style: {
...borderProps.style,
borderRadius: `${ borderRadius }px`,
},
};
}

const colorProps = useColorProps( attributes );
Expand Down