ui
ui copied to clipboard
https://github.com/react-restart/ui/blob/main/src/DropdownMenu.tsx ```js const menuProps: UserDropdownMenuProps = { ref: setMenu || noop, 'aria-labelledby': toggleElement?.id, ...popper.attributes.popper, style: popper.styles.popper as any, }; ``` `aria-labelledby` is forced to be the `id` of the toggle...
### Fixes - #48 ### What's changed Remove scrollbar width check before set style on container. This should make test works also on MacOS with automatic scrollbar display.
DropdownMenu uses `useLayoutEffect` to update `popper`. If you want to make ESLint happy and add `popper` as a `useLayoutEffect` hook dependency this causes an endless loop because `popper` object changes...
## Is your feature request related to a problem? Please describe The project I work on is migrating away from popperjs/core to [floating-ui ](https://floating-ui.com/docs/migration) Floating UI is the rebranding new...
## Describe the bug When an input is the last focusable element of a Dropdown menu, tabbing from this element change the focus to the next focusable element outside the...
## Describe the bug Why do Modals (and Dropdowns) use keyDown while Overlays use keyUp? Is there a principle or is this just happenstance? Motivation is that if you're building...
ARIA APG[[1]](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/) [[2]](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-links/) recommends omitting `aria-expanded` when the menu is hidden. For `combobox`, however, it **must** be present at all times.
## Describe the bug `Overlay` with `rootClose` closes as soon as it is opened if it is hosted inside of a [custom element](https://developer.mozilla.org/en-US/docs/Web/API/Web_Components/Using_custom_elements) shadow root. I'm using custom elements to...
Fixes #90 Initial idea for fixing the shadow dom issue. Seems to work ok in React 16-18. Tests fail though because `currentEvent` is undefined in the test environment and it's...
## Is your feature request related to a problem? Please describe I am working on a set of components in a library: Dialog, Modal, and Popover. It is feasible that...