-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Mobile] - Autocomplete - Show icons for embed suggestions #34117
Conversation
Size Change: +1.3 kB (0%) Total Size: 1.03 MB
ℹ️ View Unchanged
|
I'm wondering if the embed variants should be included in the autocomplete because they're not present in the block picker 🤔. We actually have a pending task for enabling them but it hasn't been tackled yet. |
Interesting, is there a reason why we wouldn't want them there? Looking at that issue, it mentions to enable the top 8 most used ones, do you think that limit should exist as well in the slash inserter feature? Regardless of the decision, this issue still stands since these icons are not showing up 😅 |
That's a good question, as far as I know, this topic hasn't been considered in the project so I'm going to expose it and open an issue as a follow-up. From my POV, I think it makes sense that they exist there, I think the main reason for only showing the most used ones in the block picker is a matter of highlighting them, which wouldn't be the same case in the slash inserter.
True 😅 , I'll review it as soon as possible to be included in the next release 💨 . |
packages/components/src/autocomplete/autocompleter-ui.native.js
Outdated
Show resolved
Hide resolved
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.
I added a couple of comments that would be nice to check but I tested the PR and works fine so LGTM 🎊 !
Tested on Simulator iPad Pro (12.9-inch) - 4th generation (iOS 14.4) and Samsung Galaxy S20 FE 5G (Android 10).
@geriux let me know when you create the Gutenberg Mobile PR to review it too, thanks! |
Gutenberg Mobile PR
-> wordpress-mobile/gutenberg-mobile#3845Description
This PR fixes an issue where the slash inserter feature (autocomplete) is not showing some icons to the suggestions (for embeds).
How has this been tested?
/
into a Paragraph blockVideoPress
,CloudUp
,Crowdsignal
Screenshots
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).