Skip to content

Add back icon name in class attribute to work again with font icons#9666

Merged
nul800sebastiaan merged 1 commit intoumbraco:v8/contribfrom
bjarnef:v8/bug/umb-node-preview-icon
Jan 19, 2021
Merged

Add back icon name in class attribute to work again with font icons#9666
nul800sebastiaan merged 1 commit intoumbraco:v8/contribfrom
bjarnef:v8/bug/umb-node-preview-icon

Conversation

@bjarnef
Copy link
Copy Markdown
Contributor

@bjarnef bjarnef commented Jan 15, 2021

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes #9665

Description

I noticed in users section some icons were missing 🙈

image

I figured out that I removed the icon name from the class here, because I thought it wasn't necessary:
a9a4b08#diff-6a8c6488e5f6832a8854541a572ad9893f004e32733a52fe2591fec34a0344deL3

Now it works again!

image

Mostly you won't notice in core, because we have SVG icons for most of the old font icon classes. But currently it IS necessary currently, when the icon isn't available as SVG icon: #9255

At least until we find a better way to handle this and since many packages are using <umb-node-preview> component and probably with font icons since that was the original approach.

@bjarnef
Copy link
Copy Markdown
Contributor Author

bjarnef commented Jan 15, 2021

@nul800sebastiaan @nathanwoulfe maybe you can have a look at this? 👍

@nul800sebastiaan nul800sebastiaan changed the base branch from v8/contrib to v8/8.11 January 19, 2021 16:13
@nul800sebastiaan nul800sebastiaan changed the base branch from v8/8.11 to v8/contrib January 19, 2021 16:13
@nul800sebastiaan nul800sebastiaan merged commit c1ebfc5 into umbraco:v8/contrib Jan 19, 2021
@bjarnef bjarnef deleted the v8/bug/umb-node-preview-icon branch January 19, 2021 16:19
@nul800sebastiaan
Copy link
Copy Markdown
Member

Thanks @bjarnef - I've cherry-picked for 8.10 and 8.11 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icons missing from umb-node-preview

2 participants