Skip to content

Bootstrap 5, double escaping of SVG content #1012

Description

@bazineta

In the Bootstrap 5 SCSS, there's 4 instances of escape-svg() used, e.g., here

background-image: escape-svg($form-select-indicator), escape-svg($icon);

I think this is double-encoding the content, resulting in broken results. That is, escape-svg() is encoding the # in the color value to %23, etc., but since it's already wrapped in url(), the double-processing produces a broken result.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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