Skip to content

[Icons] Icons are missing xmlns attribute #2561

@eigentor

Description

@eigentor

Reporting this as a bug, even if it may be I use the ux-icons bundle not in the indended fashion. Feel free to change issue type if this is the case.

I installed the UX icons package and use it to just download the icons with like
console ux:icons:import flowbite:user-solid and reference them as background images with css.
The icons download just fine but I was surprised the browsers could not render them. It appears the xmlns attribute is missing
xmlns="http://www.w3.org/2000/svg" so the browsers do not render the icons as icons but as xml.
This happens independent of what library I use. I tried akar-icons, devicons and fa6-brands.
While in my case i can add the xmlns manually, the point of using ux-icons for me is not to manually wrangle files but to just download and enjoy.

As stated, maybe I am using it wrong :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueIdeal for your first contribution! (some Symfony or front-end experience may be required)IconsStatus: ReviewedHas been reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions