Skip to content

Enable me to use Material UI Icons in HTML and Markdown pane #151

@MarcSkovMadsen

Description

@MarcSkovMadsen

I would like to be able to use Material UI icons in HTML and Markdown panes.

I was able to by including the css_files globally.

https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=schedule,weekend,person,leaderboard

Please note I do include specific icon_names to minimize the bundle that needs to be loaded.

Then I can include in HTML panes using the html:

<span class='material-symbols-outlined card-icon'>{icon}</span>

Complication

It used to work for me in #143.

Image

But as I started refactoring the application I found that suddenly the HTML pane gets disabled when the css url is included. My hypothesis is that its somehow related to the timing of when the icon css is loaded?

In the video at 00:07 you can see how the HTML panes are disabled when I include the css url. I can unhide by changing the css visibility to inherit manually. It affects all HTML panes including the Alert shown when there are errors in the code. Strange.

html-not-showing.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions