salesforce / design-system-react

Salesforce Lightning Design System for React
https://design-system-react-site.herokuapp.com/
BSD 3-Clause "New" or "Revised" License
921 stars 419 forks source link

Limit menu dropdown opening trigger keys #2977

Closed Azmarie closed 2 years ago

Azmarie commented 2 years ago

Fixes #2974

Additional description


CONTRIBUTOR checklist (do not remove)

Please complete for every pull request

REVIEWER checklist (do not remove)

Azmarie commented 2 years ago

Could you take a look? @interactivellama @alexxpan @gfyhui @alexzherdev, thank you.

interactivellama commented 2 years ago

Logic looks good to me.

interactivellama commented 2 years ago

@Azmarie A unit test around the esc key being pressed is failing: https://app.circleci.com/pipelines/github/salesforce/design-system-react/122/workflows/bf7b05e8-dfc5-483b-8156-ad87e9f3387d/jobs/495

I'm guessing this is do to the logic change.

interactivellama commented 2 years ago

@Azmarie here's the Keyboard Support support spec we need to meet. https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html

Azmarie commented 2 years ago

Thank you for taking a look @interactivellama, I will fix the close Menu on esc case now.

interactivellama commented 2 years ago

@alexzherdev @Azmarie Would either of you like to release? Here is how to do it. A patch.md file will trigger the build server to create a release build. https://github.com/salesforce/design-system-react/pull/2973