-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support custom SVG icon in umb-child-selector component #10344
Support custom SVG icon in umb-child-selector component #10344
Conversation
Hi there @bjarnef, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
I also noticed it is a similar issue if using property editor as macro parameter editor: https://our.umbraco.com/documentation/extending/macro-parameter-editors/ Fixed in a4d6847 |
…losing tag from button element
A custom SVG icon was missing here as well - fixed in a54b0b1 |
@nul800sebastiaan is it too late to fix this in 8.14.0 release? |
@bjarnef Awesome! But yes, about 2 hours too late for the 8.14 release, not to worry, we'll get it into a patch release instead 👍 Thanks for the help, you're a star! |
Oh no! 😱 ... no espresso for me then ☕ |
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.
Beautiful, thank you @bjarnef
It still bugs me that we pass the icon string into the umbIcon directive twice (once as the icon attribute, and again in the class). Probably not worth worrying about now, given it would be a pretty big change, but I'm sure we could be using the class attribute only for additional styling (color, size etc), then adding the icon attribute into the class string when we're rendering. Ideally the new UI will drop support for legacy icons, so the umbIcon component would be up for a rebuild anyway
Prerequisites
If there's an existing issue for this PR then this fixes #10340
Description
When using custom SVG icons these were not show in
<umb-child-selector>
component.Furthermore this PR also replace the search filter markup with
<umb-search-filter>
component.The compass icon is a custom font icon from my Material Design Icon Pack, the coffee icon a custom SVG icon and the rest Umbraco core icons.
This item has been added to our backlog AB#12146