-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Comparing changes
Open a pull request
base repository: adobe/react-spectrum
base: react-aria@3.30.0
head repository: adobe/react-spectrum
compare: react-aria@3.31.0
Commits on Nov 9, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for bc5a38a - Browse repository at this point
Copy the full SHA bc5a38aView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 9ce2f67 - Browse repository at this point
Copy the full SHA 9ce2f67View commit details -
Additional TS StrictMode support (#5305)
* ts strict for react-types l * react aria tabs * react aria meter * react aria radio * react aria separator * react aria sidenav * react aria toggle * tabs react types tabs * yarn lock * fix ref in sidenav * layout required * updates after devon's pr * remove stale lock file change --------- Co-authored-by: Robert Snow <rsnow@adobe.com>
1Configuration menu - View commit details
-
Copy full SHA for afe9c35 - Browse repository at this point
Copy the full SHA afe9c35View commit details -
2
Configuration menu - View commit details
-
Copy full SHA for 2bfb2a1 - Browse repository at this point
Copy the full SHA 2bfb2a1View commit details
Commits on Nov 11, 2023
-
* tableview crash bug * clean up * lint * subtract border width from body width * Use percentage width when elements are full width of their parents * remove old code * Fix headers not scrolling * Revert "Fix headers not scrolling" This reverts commit b4104f8. * Add inner div to headers * try setting overflow-x: hidden instead --------- Co-authored-by: Devon Govett <devongovett@gmail.com> Co-authored-by: Rob Snow <rsnow@adobe.com>
1Configuration menu - View commit details
-
Copy full SHA for dad13d5 - Browse repository at this point
Copy the full SHA dad13d5View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 2b9a821 - Browse repository at this point
Copy the full SHA 2b9a821View commit details -
Fixing date components light theme placeholder color contrast (#5396)
* Fixing date components light theme placeholder color contrast * removing the css variable and useing the gray variable directly
1Configuration menu - View commit details
-
Copy full SHA for 0da1486 - Browse repository at this point
Copy the full SHA 0da1486View commit details
Commits on Nov 13, 2023
-
[RAC] fix: Propagate isDisabled prop from DatePicker to popover Button (
#5411) * fix: Propagate isDisabled prop from DatePicker to popover Button * Update packages/@react-aria/datepicker/src/useDatePicker.ts Co-authored-by: Robert Snow <snowystinger@gmail.com> * remove: unnecessary props * fix: lint --------- Co-authored-by: Robert Snow <snowystinger@gmail.com> Co-authored-by: Reid Barber <reid@reidbarber.com>
1Configuration menu - View commit details
-
Copy full SHA for 10d3395 - Browse repository at this point
Copy the full SHA 10d3395View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 9e6513b - Browse repository at this point
Copy the full SHA 9e6513bView commit details -
fix: labelable option to Tab props for aria-label support (#5408)
* fix: labelable option to Tab props for aria-label support * Add test for RSP component as well --------- Co-authored-by: Robert Snow <rsnow@adobe.com> Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
1Configuration menu - View commit details
-
Copy full SHA for 3bc83a2 - Browse repository at this point
Copy the full SHA 3bc83a2View commit details -
Fix selected checkbox fill color when checkbox group is disabled (#5407)
* Fix selected checkbox fill color when checkbox group is disabled * get isDisable from checkbox group state
1Configuration menu - View commit details
-
Copy full SHA for 3efd6c0 - Browse repository at this point
Copy the full SHA 3efd6c0View commit details
Commits on Nov 14, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for f600fdf - Browse repository at this point
Copy the full SHA f600fdfView commit details
Commits on Nov 15, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for 3688f07 - Browse repository at this point
Copy the full SHA 3688f07View commit details
Commits on Nov 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5dac45c - Browse repository at this point
Copy the full SHA 5dac45cView commit details
Commits on Nov 17, 2023
-
Steplist css improvements / HCM (#5339)
* Steplist css improvements, HCM
Configuration menu - View commit details
-
Copy full SHA for 714c8f6 - Browse repository at this point
Copy the full SHA 714c8f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 684e596 - Browse repository at this point
Copy the full SHA 684e596View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22aa113 - Browse repository at this point
Copy the full SHA 22aa113View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a2d5b7 - Browse repository at this point
Copy the full SHA 0a2d5b7View commit details
Commits on Nov 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8088fe7 - Browse repository at this point
Copy the full SHA 8088fe7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa2d591 - Browse repository at this point
Copy the full SHA fa2d591View commit details
Commits on Nov 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 658423e - Browse repository at this point
Copy the full SHA 658423eView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for efaf9ed - Browse repository at this point
Copy the full SHA efaf9edView commit details
Commits on Nov 21, 2023
-
Add directory support for FileTrigger (#5444)
* Add directory support for FileTrigger * docs: Added description of UNSAFE_directory prop * refac: Remove unsafe prefix * Add story * Update FileTrigger.mdx Updated section title to match formatting of others --------- Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com> Co-authored-by: Rob Snow <rsnow@adobe.com> Co-authored-by: Reid Barber <reid@reidbarber.com>
1Configuration menu - View commit details
-
Copy full SHA for a3d77ab - Browse repository at this point
Copy the full SHA a3d77abView commit details -
Configuration menu - View commit details
-
Copy full SHA for b249a56 - Browse repository at this point
Copy the full SHA b249a56View commit details
Commits on Nov 22, 2023
-
Fix TableView resize observer loop limit (#5432)
* Fix resize observer loop limit
Configuration menu - View commit details
-
Copy full SHA for 75417bb - Browse repository at this point
Copy the full SHA 75417bbView commit details -
Fix extra char read by AT (#5451)
* Fix Steplist extra hidden char
Configuration menu - View commit details
-
Copy full SHA for a2d54a8 - Browse repository at this point
Copy the full SHA a2d54a8View commit details -
* add docs for useLandmark * lint * add iframe example * fix docs types * remove iframe example * fix lint * link to useToastRegion * Update packages/@react-aria/landmark/docs/useLandmark.mdx * update category to Utilities --------- Co-authored-by: Kyle Taborski <ktabors@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for ef33efe - Browse repository at this point
Copy the full SHA ef33efeView commit details -
Add menuWidth & expose align props in ComboBox and SearchAutocomplete (…
…#5446) * Add menuWidth & expose align props in ComboBox and SearchAutocomplete
Configuration menu - View commit details
-
Copy full SHA for dd8b226 - Browse repository at this point
Copy the full SHA dd8b226View commit details
Commits on Nov 23, 2023
-
Provide access to portalContainer of react-aria-components popover el…
…ement (#5381) * Expose portalContainer prop for modal, popover, and tooltip
Configuration menu - View commit details
-
Copy full SHA for 7afd118 - Browse repository at this point
Copy the full SHA 7afd118View commit details -
Append "pending" to button label and copy to isPending spinner aria-l…
…abel (#5245) Announce pending to screen readers.
Configuration menu - View commit details
-
Copy full SHA for 9d8c74a - Browse repository at this point
Copy the full SHA 9d8c74aView commit details
Commits on Nov 27, 2023
-
Fix the top margin of a button in a form (#5461)
* remove where * add example to cra * update example in cra
Configuration menu - View commit details
-
Copy full SHA for d59875a - Browse repository at this point
Copy the full SHA d59875aView commit details -
Updating support page copy for process when asking questions (#5466)
* Updating support page copy for process when asking questions * less repetitive copy
Configuration menu - View commit details
-
Copy full SHA for 963e75f - Browse repository at this point
Copy the full SHA 963e75fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48f29e1 - Browse repository at this point
Copy the full SHA 48f29e1View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 78a49f5 - Browse repository at this point
Copy the full SHA 78a49f5View commit details
Commits on Nov 28, 2023
-
Menu button and popover can have same width (#5465)
* Adding --trigger-width support to Menu * removing example
1Configuration menu - View commit details
-
Copy full SHA for 5e4dfb0 - Browse repository at this point
Copy the full SHA 5e4dfb0View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for fa00e0d - Browse repository at this point
Copy the full SHA fa00e0dView commit details -
Support for Avatar in ListBox, Picker, ComboBox, and SearchAutocomple…
…te (#5431) * support Avatar in ListBox, Picker, and ComboBox * address review comments * update docs * lint * update stories * fix listbox chromatic * reference accessibility secion in docs
1Configuration menu - View commit details
-
Copy full SHA for 1c1fbe5 - Browse repository at this point
Copy the full SHA 1c1fbe5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e48753 - Browse repository at this point
Copy the full SHA 5e48753View commit details
Commits on Nov 30, 2023
-
Add capitalization settings support for useTextField (#5472)
* Add captchralization settings support for useTextField * fix: link * Update useTextField.stories.tsx add auto capitalization story to useTextField --------- Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com> Co-authored-by: Robert Snow <rsnow@adobe.com>
1Configuration menu - View commit details
-
Copy full SHA for 1cba01d - Browse repository at this point
Copy the full SHA 1cba01dView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for ce963f7 - Browse repository at this point
Copy the full SHA ce963f7View commit details -
* adding stories and chevron * planning * fix sections in items * scuffed experimentation with getting sub menu to render using existing ContextualHelpTrigger and ListBox to see what is needed for the sub menu * notes from api review * reset state of some files and add tentative SubMenuTrigger implementation SubMenuTrigger hasnt been tested, just grabs stuff from MenuTrigger and ContextualHelpTrigger that I deemed suitable * update static story and dynamic story for testing * fix dynamic story * update sub menu interactions add support for opening submenu via Enter/Space/ArrowRight and closing submenu via ArrowLeft. Also adds the proper autoFocus behavior based on the interaction that opened the submenu * fix onOpen undef and test onBlurWithin misc cleanup as well * use useMenuTrigger to get proper submenutrigger id and aria-labelledby for submenu * add onAction inheritence between submenus and test aria-controls * fix crash * explored alt dynamic render function, update rest of the existing stories * making all menus close on menu action trigger * making sub menu item ArrowLeft not close all menus * fix user provided onClose not firing and ContextualHelpTrigger isUnavailable=false user provided onClose wasnt firing because we were always sourcing it from the MenuTriggers context onClose. ContextualHelpTrigger also needed additional logic to not render a sub menu if isUnavailable is false * add complex and align/placement stories * fix lint and circular dependency * add onSubMenuClose instead of having a isSubMenu bool and passing the whole trigger state to useMenu this makes the api a bit nicer * add first batch of tests * prevent SubMenuTrigger items from being selected current approach has the SubMenuTrigger adding a prop to the Item let selectionManager know that it should be non-selectable. Other approaches would involve additional changes to useSelectableItem to disable press props but keep keyboard navigation * make Escape close all menus without triggering user provided onClose * Add stories + tests for user provided handlers and make onCloseAllMenus a private prop dont really feel like users will need to pass in something for onCloseAllMenus so made it a hidden prop. Also moved it into useMenu so it doesnt matter if the user is focused on the menu or a menu item when hitting Esc * Adding selection and onOpenChange tests also made onSubMenuClose a private prop * fixng tests and lint * fix last failing tests * fix mutated submenu trigger keys * fix tests * use menuProps from useMenuTrigger for submenu props and restore new useMenu props * tentative workaround to close all menus when clicking outside * fix tests didnt actually need to let propagation continue * add onAction to stories and test for aria-controls * Removing several MenuTrigger props from SubMenu as per discussion we decided that things like isOpen/positioning/etc can be added later if need be * make submenu trigger use menuitem role and adding additional tests submenu triggers cant be checked so they shouldnt have a menuitemcheckbox or menuitemradio role * finally fix sub menu width the div in the menu that we portal the next submenu to needs to be wide enough that the submenu items can render as wide as they can be. Technically the width applied should be (submenu max width + parent menu width) * fix infinite repositioning loop the portal container div for submenus needed to fit exactly within the screen width in both directions so the sub menu size would resolve properly in the case where we need to flip the positioning * rough refactor progress * fix ArrowRight closing too many menus and preventing close when focusing submenutrigger still closes too many submenus if you hover a submenu trigger and then hit arrow right... * fix aria attribute propagation to submenu trigger * save state * move stuff into hooks * stopgap lint and test fixes * attempting to close submenu whenever focus moves out of its active scope * fixing submenu close behavior when moving focus from trigger or into lower menu * adding/fixing tests for new submenu hover behavior focus now doesnt move to menu if opened via hover * Update ContextualHelpTrigger to work with useSubMenuTrigger * fix tabbing in ContextualHelpTrigger refactor * fixing tabbing behavior between submenu/trigger and retaining menu item focus on hover fixes break in behavior where tabbing from level 3 submenu was closing all submenus. Also fixes it so that a user hovering a level 1 submenutrigger keeps focus on the trigger even after all the remaining submenus close * updating tests for userEvent library upgrade * clearing expandedKeyStack when user clicks underlay and comment cleanup * adding test for tab/shift tabbing * updating menu tree state expanded keys on submenu open/close needed a way for a menu to know that it has a open submenu so that it can set aria-hidden on itself, otherwise Safari VO had a hard time shifting focus to the newly focused submenu item. Also helpful for knowing when to set contain on a menu. Alternative would be having useMenu accept menuTreeState and initialize a level and look up in the expandedKeysStack if it owns a open submenu, open to discussion if that is the way we wanna go * fix test test was failing because it mimick run flow in browser. We needed to have useSelectableCollections focus call trigger the blur on the submenutrigger and update expandedKeys to modify the containment of the submenu before the keydown makes it to the keydown handlers of FocusScope * inital progress with Tray submenu * adding rough styling and removing popover specific logic from tray * fix lint * update context name and fix ContextualHelpTrigger behavior when focus is moved to the subdialog trigger * adding tray tests and fixing submenu overflow * Fix tray autofocus behavior with touch and add remaining tests * replacing submenu aria-labelledby with aria-label due to parent menu being aria-hidden follows the approach shown in https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-navigation/. Aria-hidden on the parent menu is needed to force Safari VO to move to newly opened submenus * move submenu styles to css files * fixing submenu cross offset * fix tests * fix ContextualHelpTrigger dialog offset and hover behavior when entered via a open submenu this unfortunately breaks another interaction case but to handle later * update labeling so it uses hook * fix tests * partial cleanup and fix build * Revert "update labeling so it uses hook" This reverts commit 66ce969. * Revert "fix tests" This reverts commit 2c6921a. * converting hooks to UNSTABLE and other cleanup * adding sample chromatic test with interactions * add tray tests * fix chromatic tray interactions * Making ContextualHelpTrigger tray modal a tray instead * Make SubMenu Tray a dialog with heading * partial fix for stacking drop shadow issue * Adding useKeyboard to useMenu and updating tests * Expanding useMenuItem types and fixing Esc and keyup behavior * merge useMenuState into useMenuTriggerState * Stop updating tree state expanded keys in favor of returning level from submenu state and looking up key in expandedKeyStack from discussion, we wanted to get rid of the reliance on tree state * Making it so a menu trigger that is set as the selectedKey doesnt actually get autofocused IMO we should only be moving focus to truely selectable options in useSelectableCollection, previously was autofocusing lvl 2 Item 3 in https://reactspectrum.blob.core.windows.net/reactspectrum/82c23dbc122a23d05f2ba3e3968d45d36d82fc2b/storybook/index.html?path=/story/menutrigger-submenu--sub-menu-selection&providerSwitcher-express=false * forgot to remove the state combination * fix styles for ContextualHelpTrigger tray experience * reaname SubMenu -> Submenu * fix git casing * Submenus: prevent pointer events on menu if moving towards submenu (#5082) * initial conversion * initialize safe area submenu hook * lint * lint peerDeps * disable if submenu isn't open * add comment for angle calculation * cleanup direction check * remove menuRef * update lastProcessedTime * fix style props merge * early return for touch and pen pointerType * add timeout * fire pointerenter * add padding to top/bottom angles * allow 2 invalid movements * add padding as const * use pointerover to trigger underlying item * up the timeout to 1s * cleanup from merge * store direction as ref and rename * type * bail early when pointer reaches submenu * clear timeout if bailing early * move up cleartimeout * fix test * add skip * fix ts strict * add interaction modality check * remove skip * revert mock * attempt to fix contextualhelp * fix ref * make submenu ref optional * fix logic and allow disabling * attempt to fix refs for unavailable menu item * fix from merge conflict * conditionally render overlay to avoid dup refs * add missing textValue * merge * fix from merge * fix safe pointer movement for submenus --------- Co-authored-by: Daniel Lu <dl1644@gmail.com> * rename subMenu -> submenu * fix types * update useSafelyMouseToSubmenu to set menu style * remove dup style * fix tests * lint * fix ts * code review * fixing submenu tray header positioning and getting rid of non-issue todos * improve submenu safe area experience * add story with many items * fix dup key * partial progress on getting rid of onExit has changes that makes tab close all submenus and move focus to prev/next element. Still need to get tabbing working in contextualhelp dialog, ideally have it contain focus but still allow user to freely hover another menu item without FocusScope highjacking focus back to the subdialog trigger * sharing TrayHeaderWrapper with SubMenu and ContextualHelpTrigger also made an attempt to have the ContextualHelpTrigger contain focus, but that breaks the case where the user hovers the sub menu item in the root menu aka focus gets moved back to the subdialog trigger instead of the menu item the user hovered * don't measure for safe area when outside of menu * typo * removing contains on ContextualHelpDialog the contains interfered with the hover focus that a user could perform on the root menu items when the subdialog was open so we are omitting for now * clean up more todos * fix menu overflow behavior and rendering for an available ContextualHelpTrigger * initial docs * add dynamic example to docs * adding prop table for SubmenuTrigger and additional copy * fix mobile w/ keyboard focus behavior when closing submenu * fixing tray experience on desktop with small screens when emulating a small screen with desktop mode active in dev tools, hovering a unavailable menu item was opening it and clicking on a submenu trigger didnt open it * review comments * addressing review comments makes submenu level 0th indexed and getting rid of rafs by just moving hidden trays out of view * getting rid of weird double border * Fix SubMenu tray scrolling if there are many items * get rid of erroneous border and background color and fix tray height * restore drop shadow * make contextual help dialog full width * fixing tests * fix scrollbars appearing when closing all submenus comment for posterity: the popover container needs to be as wide as the viewport and offset to be flush with the viewport so that the popover positioning w/ flipping works. Also required to allow the menu width to grow to fit its contents but still be constrained by the max height. We remove the div when the root menu is closed so that scroll bars dont flash on to the screen because the leftOffset calculation isnt perfect due to a transform applied on left/right aligned menus that throws off the getBoundingClientRect calc * forgot to save * fix tests * fix focus being lost to body when using hidden dismiss button in Safari manually moves focus to the parent menu when MacOS Safari Voiceover user triggers the hidden dismiss button. to discuss with team if this belongs in aria * remove transition from submenu and rename onDismiss for clarity brings submenu appearance more inline with native submenus and rename onDismiss prop so people know it is specifically for the dismiss button interaction * fix keyboard scrolling for long menus and tabindex keep it so disabled menu items dont have a tabindex still * merge overlay and popover props * unwrap ref in ContextualHelpTrigger * fix event propagation when in contextual help or on submenutrigger fixes case where arrowLeft was propagating through contextualhelp dialogs which we only want to have be closed via ESC. Also fixes event propagation for default cases for submenu triggers so that we can call it in useMenuItem useKeyboard. Now we still properly close only the submenu trigger menu when focus is on the trigger and the submenu is open * forgot to remove comment * fixes from test session updates propName to type as per review, fixes VO dismiss button with contextual help and reintroduces the transitions back to submenu since there were some weird transforms that cause visible jerks in position when closing the submenus without the visibility transition. * remove extraneous flush sync now that we completely leave the menu on Tab * omit selectableitem props from submenutrigger items instead of informing selection manager directly that the submenu item is a non selectable item, opt for change in useMenuItem instead since it feels a bit too specific to include in selection manager. Still need onFocus though so we still update the tracked key when user clicks on a submenu trigger in a Tray * update submenu unmount animation removed the transform for submenus and replaced it with a offset calculated for Popover instead so that we dont get the weird jerk animation when the submenu unmounts * fix case where submenus dont properly open/close when rapidly opening/closing the menu with keyboard if the user presses left/right rapidly enough, the submenu doesnt actually unmount due to being in the middle of a transition animation, meaning focus wasnt being handled by useSelectableCollection focus useEffect which only run on mount. This fixes that by running focus and openSubmenu in those cases * fix tests * fix alignment * clearing timeout and adding comment for offset * clear autoclose timeout if user moves mouse before it fires --------- Co-authored-by: Reid Barber <reid@reidbarber.com>
1Configuration menu - View commit details
-
Copy full SHA for a2146aa - Browse repository at this point
Copy the full SHA a2146aaView commit details
Commits on Dec 1, 2023
-
Change RAC style merge order (#5506)
* Change style merge order for RAC
1Configuration menu - View commit details
-
Copy full SHA for 378f3ee - Browse repository at this point
Copy the full SHA 378f3eeView commit details
Commits on Dec 2, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for fc0e6b6 - Browse repository at this point
Copy the full SHA fc0e6b6View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for ee403ec - Browse repository at this point
Copy the full SHA ee403ecView commit details
Commits on Dec 5, 2023
-
Fix style merging for overlay arrow (#5511)
* Fix style merging for overlay arrow
1Configuration menu - View commit details
-
Copy full SHA for e090bf8 - Browse repository at this point
Copy the full SHA e090bf8View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for daf929f - Browse repository at this point
Copy the full SHA daf929fView commit details
Commits on Dec 6, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for dd348f1 - Browse repository at this point
Copy the full SHA dd348f1View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for d2049a5 - Browse repository at this point
Copy the full SHA d2049a5View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for e8f2ef4 - Browse repository at this point
Copy the full SHA e8f2ef4View commit details
Commits on Dec 7, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for c465f95 - Browse repository at this point
Copy the full SHA c465f95View commit details
There are no files selected for viewing