Summary
Recent updates related to the MenuItem component have introduced a bug in the text styles of menu items within the TypeaheadSearch menu when a user navigates through menu items via the arrow keys.
To reproduce
- Visit https://doc.wikimedia.org/codex/main/components/typeahead-search.html
- Type something in one of the demo inputs
- Use the arrow keys to navigate through the list of menu items
Actual vs. expected behavior
You will see the label and description text is blue, when it shouldn't change in this case.
This is happening because when a menu item is highlighted via keyboard, it is both highlighted and selected. Menu items in this state have blue text for the label and description.