Skip to content

Commit 65e685f

Browse files
committed
Make dropdown menu appear on hover (instead of on click)
Making the dropdown menu appear on hover instead of on click matches the natural behavior of other dropdown menus in Docusaurus.
1 parent 35cb4be commit 65e685f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/Support/SupportDropdownMenu.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,10 @@ If applicable, add screenshots to help explain your problem.
123123

124124
return (
125125
<div className="supportDropdown" ref={dropdownRef}>
126-
<button className="supportDropBtn" onClick={toggleDropdown}>
127126
{isJapanese ? "何かお困りですか?" : "Need help?"} <FontAwesomeIcon icon={faChevronDown} />
127+
<button className="supportDropBtn" onMouseOver={toggleDropdown}>
128128
</button>
129129

130-
{isOpen && (
131130
<div className="supportDropdownContent">
132131
<div>
133132
<a href="#" onClick={handleSupportClick} rel="noopener noreferrer">
@@ -140,7 +139,7 @@ If applicable, add screenshots to help explain your problem.
140139
<b>{isJapanese ? "Stack Overflow をチェック" : "Check Stack Overflow"}</b><br />
141140
{isJapanese ? "すべてのユーザーがご利用いただけます。" : "Available to all users."}
142141
</a>
143-
<hr />
142+
<hr /> */}
144143
<a href="#" onClick={openModal}>
145144
<b>{isJapanese ? "AI に聞く (試験運用中)" : "Ask AI (experimental)"}</b><br />
146145
{isJapanese ? "Scalar Membership Programにご参加の方のみご利用いただけます。" : "Available only to members of the Scalar Membership Program."}
@@ -151,7 +150,6 @@ If applicable, add screenshots to help explain your problem.
151150
{isJapanese ? "このページについて何かお気づきの点がありましたら、こちらから報告いただけます。" : "If you have any feedback about this page, please submit an issue."}
152151
</a>
153152
</div>
154-
)}
155153

156154
{isModalOpen && (
157155
<Suspense fallback={<div>Loading...</div>}>

0 commit comments

Comments
 (0)