-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composite: Restore Hover
and Typeahead
functionality
#67212
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
@@ -26,5 +26,5 @@ export const CompositeHover = forwardRef< | |||
// obfuscated to discourage its use outside of the component's internals. | |||
const store = ( props.store ?? context.store ) as Ariakit.CompositeStore; | |||
|
|||
return <Ariakit.CompositeGroup store={ store } { ...props } ref={ ref } />; | |||
return <Ariakit.CompositeHover store={ store } { ...props } ref={ ref } />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol another one
Hover
and Typeahead
functionality
Flaky tests detected in 9a319a3. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11958943827
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I have confirmed that both the up and down keyboard navigation and type-ahead functions work correctly.
Before
before.mp4
After
after.mp4
- `FormFileUpload`: Prevent HEIC and HEIF files from being uploaded on Safari ([#67139](https://github.com/WordPress/gutenberg/pull/67139)). | ||
- `Composite.Hover`: Restore functionality ([#67212](https://github.com/WordPress/gutenberg/pull/67212)). | ||
- `Composite.Typeahead`: Restore functionality ([#67212](https://github.com/WordPress/gutenberg/pull/67212)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these three more appropriate for the bug fixes section?
I think this PR is worth backporting to 6.7.2, so I'm adding the "Backport to WP Minor Release" label. |
Fixes #67152
What?
Restores functionality of
Composite.Hover
andComposite.Typeahead
.How?
Due to a copy paste error in #65821, Typeahead functionality was lost and replaced with a CompositeRow, as well as Hover with CompositeGroup 😄
Testing Instructions
See repro instructions in #67152.