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

sw-icon autocomplete #31

Open
zaifastafa opened this issue Oct 7, 2021 · 3 comments
Open

sw-icon autocomplete #31

zaifastafa opened this issue Oct 7, 2021 · 3 comments

Comments

@zaifastafa
Copy link

When using icons such as {% sw_icon 'bag' %} it would be great if an autocomplete can be provided to select the icon from available ones. For admin and storefront too if easily possible.

@PheysX
Copy link

PheysX commented Oct 7, 2021

Great idea, lets dont stop on this point.

We could autocomplete in storefront the style parameter known keys, like:

  • pack
    • Find all available packs in shopware and plugins, who provide the icon identifier (when the namespace is chosen first, it should be considered)
  • namespace
    • Find all namespaces, who provide the icon identifier (when the pack is chosen first, it should be considered)

@shyim
Copy link
Collaborator

shyim commented Oct 13, 2021

I personally never used sw_icon.

  • Where are the files for autocomplete
  • Can that path be different per extension?
  • What is icon namespace?
  • What pack?

@PheysX
Copy link

PheysX commented Oct 14, 2021

Storefront

  • Where are the files for autocomplete
    • <Namespace>/src/Resources/app/storefront/dist/assets/icon/<pack>/*.svg
  • Can that path be different per extension?
  • What is icon namespace?
    • PluginName like Storefront, FroshTools
  • What pack?
    • Multiple folders in icon folder to delivier different styles of icons like bold, italic or random names

For more info and further attributes: Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants