Skip to content

[Swiper 12 / Navigation] Add settings to enable SVG injection #8088

@msev

Description

@msev

Clear and concise description of the problem

Hi,

On some web projects, I use ::before/::after to inject the navigation icon (font icon).

Since Swiper 12, if the <svg> node is not found, Swiper automatically injects its <svg>, which in my case creates a double icon: ::before/::after + <svg>.

Suggested solution

SVG injection should not be enabled by default.
It would be nice to have an option in the navigation module to enable or disable (enable will be better) this automatic injection.

Alternative

No response

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions