Skip to content

Identify images which shoudld be svg instead of background images #213

@kbventures

Description

@kbventures

Description

Quoting @madcampos

Background images work for things like the arrow on a select, or as the list indicator for a list item. Those are situations where the image is an enhancement to a single element.

For components with more than one element, then using an SVG is usually better.

The other point is styling, if we need to control or change how the icon will be styled (which is almost always), then using SVG is better as we can style it with CSS. An SVG image cannot have dynamic styles.

#173 (comment)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions