Skip to content

Commit b712843

Browse files
committed
Fix the CallForProposals on mobile
1 parent c40d8df commit b712843

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/conf/2025/components/call-for-proposals.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,15 +444,17 @@ function TabButton({
444444
"gql-focus-visible flex items-center justify-between px-3 py-4 typography-body-lg hover:bg-sec-light focus:outline-none max-md:border-b max-md:border-sec-dark max-md:first:border-t md:[--collapsible:1] md:aria-selected:bg-sec-light",
445445
className,
446446
)}
447-
onFocus={event => {
448-
console.log("focus")
447+
onFocus={() => {
448+
setActiveTab(tab)
449+
}}
450+
onPointerDown={() => {
449451
setActiveTab(tab)
450452
}}
451453
onKeyDown={arrowsMoveSideways}
452454
{...props}
453455
>
454456
{tab.charAt(0).toUpperCase() + tab.slice(1)}
455-
<ArrowDownIcon className="ml-2 size-6 text-sec-darker opacity-0 [[aria-selected=true]>&]:opacity-100" />
457+
<ArrowDownIcon className="ml-2 size-6 text-transparent max-md:[[aria-selected=false]>&]:rotate-180 max-md:[[aria-selected=false]>&]:text-sec-dark [[aria-selected=true]>&]:text-sec-darker" />
456458
</button>
457459
)
458460
}

0 commit comments

Comments
 (0)