Skip to content

Conversation

@LFDanLu
Copy link
Member

@LFDanLu LFDanLu commented Feb 19, 2020

Closes https://jira.corp.adobe.com/browse/RSP-1399

✅ Pull Request Checklist:

  • Included link to corresponding Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exist for this component).
  • Looked at the Accessibility Standard and/or talked to @mijordan about Accessibility for this feature.

📝 Test Instructions:

Go to the default MenuTrigger story (https://reactspectrum.blob.core.windows.net/reactspectrum/7fd54d21d8edae29f59a62f287f1ca63aa78d665/storybook/index.html?path=/story/menutrigger--default) and verify that the following interactions work still:

  • clicking on the trigger button causes the menu to open and focuses the first item
  • focusing the trigger button and hitting Space/Enter/ArrowDown causes the menu to open and focuses the first item
  • focusing the trigger button and hitting ArrowUp causes the menu to open and focuses the last item
  • opening a menu that has a selected item causes the selected item to be focused regardless of the method used to open the menu
  • you can "wrap around" to the top/bottom item when navigating through the menu list via arrow up/down

Go to Menu/Tree/ButtonGroup/other components that use useSelectableCollection stories and verify that none of the items are autofocused on render

@LFDanLu LFDanLu changed the base branch from master to v3_menu_items_2 February 19, 2020 23:11
@adobe-bot
Copy link

Build successful! 🎉

@LFDanLu LFDanLu changed the title (WIP) Moving default focus behavior from Menu into useSelectableCollection Moving default focus behavior from Menu into useSelectableCollection Feb 21, 2020
@devongovett devongovett changed the base branch from v3_menu_items_2 to master February 28, 2020 21:03
@LFDanLu LFDanLu changed the base branch from master to v3_menu_items_2 February 28, 2020 21:11
…ard icons

also assorted package json fixes and updates
has onPress added to Switch and Checkbox so that clicking on the Checkbox doesn
removing setFocusStategy from being passed into Menu and changing default of wrapAround
@LFDanLu LFDanLu changed the base branch from v3_menu_items_2 to master February 28, 2020 22:15
@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@devongovett devongovett merged commit 0246daa into master Feb 28, 2020
@devongovett devongovett deleted the RSP-1399 branch February 28, 2020 22:35
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.

4 participants