Skip to content

fix: highlight Button and Dropdown toggle when aria-expanded is true#768

Merged
huyenltnguyen merged 1 commit intofreeCodeCamp:mainfrom
huyenltnguyen:fix/button-expanded-state
Mar 20, 2026
Merged

fix: highlight Button and Dropdown toggle when aria-expanded is true#768
huyenltnguyen merged 1 commit intofreeCodeCamp:mainfrom
huyenltnguyen:fix/button-expanded-state

Conversation

@huyenltnguyen
Copy link
Copy Markdown
Member

Checklist:

Closes #12

Screen recording
Screen.Recording.2026-03-21.at.01.23.43.mov

Registers the aria-expanded Tailwind variant and applies the inverted
bg/text colors (matching hover styles) to Button variants and the
Dropdown toggle button when aria-expanded="true".
@huyenltnguyen huyenltnguyen marked this pull request as ready for review March 20, 2026 18:33
@huyenltnguyen huyenltnguyen requested a review from a team as a code owner March 20, 2026 18:33
@huyenltnguyen huyenltnguyen merged commit 8d3d4f7 into freeCodeCamp:main Mar 20, 2026
7 checks passed
@huyenltnguyen huyenltnguyen deleted the fix/button-expanded-state branch March 20, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button should be highlighted if aria-expanded="true"

1 participant