Skip to content

Commit 029b662

Browse files
authored
Merge pull request #13887 from ethereum/patch-search-button
Patch search button
2 parents 47487ec + 2829d01 commit 029b662

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/Nav/Desktop/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const DesktopNavMenu = ({ toggleColorMode }: DesktopNavMenuProps) => {
5252
aria-label={themeIconAriaLabel}
5353
variant="ghost"
5454
isSecondary
55-
className="group px-2 xl:px-3 [&>svg]:transition-all [&>svg]:duration-500 [&>svg]:hover:rotate-12 [&>svg]:hover:text-primary-hover"
55+
className="group px-2 xl:px-3 [&>svg]:transition-transform [&>svg]:duration-500 [&>svg]:hover:rotate-12 [&>svg]:hover:text-primary-hover"
5656
onClick={toggleColorMode}
5757
>
5858
<ThemeIcon className="transform-transform duration-500 group-hover:rotate-12 group-hover:transition-transform group-hover:duration-500" />
@@ -64,7 +64,7 @@ const DesktopNavMenu = ({ toggleColorMode }: DesktopNavMenuProps) => {
6464
name={DESKTOP_LANGUAGE_BUTTON_NAME}
6565
ref={languagePickerRef}
6666
variant="ghost"
67-
className="gap-0 px-2 text-body transition-colors duration-500 active:bg-primary-low-contrast active:text-primary-hover data-[state='open']:bg-primary-low-contrast data-[state='open']:text-primary-hover xl:px-3 [&_svg]:transition-transform [&_svg]:duration-500 [&_svg]:hover:rotate-12"
67+
className="gap-0 px-2 text-body transition-transform duration-500 active:bg-primary-low-contrast active:text-primary-hover data-[state='open']:bg-primary-low-contrast data-[state='open']:text-primary-hover xl:px-3 [&_svg]:transition-transform [&_svg]:duration-500 [&_svg]:hover:rotate-12"
6868
>
6969
<BsTranslate className="me-2 align-middle text-2xl" />
7070
<span className="hidden lg:inline-block">

src/components/Search/SearchButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ const SearchButton = forwardRef<HTMLButtonElement, ButtonProps>(
1515
ref={ref}
1616
aria-label={t("aria-toggle-search-button")}
1717
className={cn(
18-
"px-2 ease-in-out [&>svg]:transition-all [&>svg]:duration-500 [&>svg]:hover:rotate-12 [&>svg]:hover:text-primary-hover",
19-
"group me-3 border border-disabled hover:border-primary-hover",
18+
"group px-2 ease-in-out [&>svg]:transition-all [&>svg]:duration-500 [&>svg]:hover:rotate-12 [&>svg]:hover:text-primary-hover",
2019
className
2120
)}
2221
variant="ghost"

0 commit comments

Comments
 (0)