Skip to content

Prevent automatic icon resize #83

@yanickrochon

Description

@yanickrochon

Following this question on StackOverflow, I found an error that should be fixed. The line here should change from :

<svg {...props} className={className} width={size} height={size} fill={color} viewBox="0 0 24 24">

to

<svg {...props} className={className} width={size} height={size} fill={color} viewBox="0 0 24 24" style={{ minWidth: size }}>

Perhaps even add maxWidth: size to prevent oversizing as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions