Skip to content
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

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

mirka
Copy link
Member

@mirka mirka commented Nov 21, 2024

Fixes #67152

What?

Restores functionality of Composite.Hover and Composite.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.

@mirka mirka added [Type] Bug An existing feature does not function as intended [Package] Components /packages/components labels Nov 21, 2024
@mirka mirka self-assigned this Nov 21, 2024
@mirka mirka requested a review from ajitbohra as a code owner November 21, 2024 17:44
Copy link

github-actions bot commented Nov 21, 2024

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mirka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: Mayank-Tripathi32 <[email protected]>
Co-authored-by: jameskoster <[email protected]>

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 } />;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol another one

@mirka mirka changed the title Composite.Typeahead: Restore functionality Composite: Restore Hover and Typeahead functionality Nov 21, 2024
@mirka mirka requested review from t-hamano and a team November 21, 2024 17:57
Copy link

Flaky tests detected in 9a319a3.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11958943827
📝 Reported issues:

Copy link
Contributor

@t-hamano t-hamano left a 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

packages/components/CHANGELOG.md Show resolved Hide resolved
@t-hamano
Copy link
Contributor

I think this PR is worth backporting to 6.7.2, so I'm adding the "Backport to WP Minor Release" label.

cc @cbravobernal

@t-hamano t-hamano added the Backport to WP Minor Release Pull request that needs to be backported to a WordPress minor release label Nov 22, 2024
@mirka mirka enabled auto-merge (squash) November 22, 2024 22:01
@mirka mirka merged commit 02611cb into trunk Nov 22, 2024
68 checks passed
@mirka mirka deleted the fix/composite-typeahead branch November 22, 2024 22:05
@github-actions github-actions bot added this to the Gutenberg 19.8 milestone Nov 22, 2024
cbravobernal added a commit that referenced this pull request Nov 24, 2024
* Composite.Typeahead: Restore functionality

* Add changelog

* Resurrect CompositeHover

* Update changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: Mayank-Tripathi32 <[email protected]>
Co-authored-by: jameskoster <[email protected]>
@ciampo
Copy link
Contributor

ciampo commented Nov 25, 2024

Lol. Thank you for having my back 🙏

cbravobernal added a commit that referenced this pull request Nov 25, 2024
…7.2 (#67258)

* Composite: Restore `Hover` and `Typeahead` functionality (#67212)

* Composite.Typeahead: Restore functionality

* Add changelog

* Resurrect CompositeHover

* Update changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: Mayank-Tripathi32 <[email protected]>
Co-authored-by: jameskoster <[email protected]>

* Update changelog

* Fix changelog

---------

Co-authored-by: Lena Morita <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: Mayank-Tripathi32 <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: Aki Hamano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport to WP Minor Release Pull request that needs to be backported to a WordPress minor release [Package] Components /packages/components [Type] Bug An existing feature does not function as intended
Projects
Development

Successfully merging this pull request may close these issues.

DataViews: Keyboard navigation in filter configuration listbox is broken
3 participants