fix: prevent product menu staying active after dropdown closes#3071
fix: prevent product menu staying active after dropdown closes#3071Sumanth0718 wants to merge 2 commits into
Conversation
Greptile SummaryReplaces
Confidence Score: 5/5Safe to merge — the change is a single Tailwind class swap with no logic or structural impact. The change touches one CSS utility class on one element. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Merge branch 'main' into fix-product-men..." | Re-trigger Greptile |
Problem
The Product menu trigger remained in the active (accent/red) state even after the dropdown menu was closed.
Root Cause
The trigger button used
focus:text-accent. When the dropdown closed, browser focus returned to the trigger button for accessibility reasons, causing the button to remain styled as active.Fix
Replaced
focus:text-accentwithfocus-visible:text-accent.This ensures:
Testing