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

Allow SVG logo to be inlined #4141

Open
4 tasks done
jasonkuhrt opened this issue Aug 15, 2024 · 0 comments
Open
4 tasks done

Allow SVG logo to be inlined #4141

jasonkuhrt opened this issue Aug 15, 2024 · 0 comments

Comments

@jasonkuhrt
Copy link

Is your feature request related to a problem? Please describe.

Currently logo is added using img element. This prevents certain kinds of CSS within the SVG from applying correctly, and it prevents CSS within the app (html file) from applying to it.

This is related to #3828 however my motivation is not exactly the same.

Describe the solution you'd like

I would like a way to specify that an SVG logo should be inlined directly into the HTML.

Describe alternatives you've considered

No response

Additional context

My goal is to have a single SVG logo file that will adapt to the dark/light mode theme automatically via this in its markup:

    <style>
        @media (prefers-color-scheme: light) { :root { filter: none; } }
        @media (prefers-color-scheme: dark) { :root { filter: invert(100%); } }
    </style>

Validations

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

1 participant