From f4f844e7befa5487628fcd5bda3d498c6c1a3a1a Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 16 Jun 2023 14:18:31 +0900 Subject: [PATCH] Search Block: Fix problem with buttons not outputting primary status (#51529) --- packages/block-library/src/search/edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/search/edit.js b/packages/block-library/src/search/edit.js index d74e03d216660..bbc864e035e9d 100644 --- a/packages/block-library/src/search/edit.js +++ b/packages/block-library/src/search/edit.js @@ -440,8 +440,8 @@ export default function SearchEdit( { key={ widthValue } isSmall variant={ - `${ widthValue }%` === - `${ width }${ widthUnit }` + widthValue === width && + widthUnit === '%' ? 'primary' : undefined }