Skip to content

Is --fa-width and --fa-display intentionally not defined when using react svg? #21518

@el-woodl

Description

@el-woodl

This is more of a question:

I am using react svg icons and I noticed that the aspect ratio of an icon is not calculated dynamically based on the viewbox. resulting what should be squared icons to have bigger computed width:

Image

This is a result of undefined --fa-width which means the following defaults to 1.25em.

Image

Is this intended? I would expect the dimensions of the rendered svg to honour the aspect ratio of the viewbox but I may be missing something.

Thanks

Metadata

Metadata

Assignees

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