Support an SVG-specific Element, as an alternative to the Image element

Currently SVGs can only be added through the Image element, or the Embed element. Both of these approaches have issues, which an SVG-specific element could solve neatly.

SVG via Embed element problems;

  • Embeds are not permitted within links, making menus difficult
  • Embeds cannot be previewed in the designer 

SVG via Image element problems;

  • The SVG cannot be affected by CSS when it is referenced through an <img> tag
  • The currentColor feature of SVGs does not function 
  • Creates a large number of HTTP requests for icon-rich designs 

SOLUTION

An SVG Element which...

  1. Works similarly to the Image element in terms of canvas placement and config options
  2. Can be associated with any SVG element in assets
  3. Adds Embed as an option, which will import the SVG content on build
  4. Support additional SVG element options, such as path-id, aria-hidden, focusable, and viewbox 

WHY THIS WOULD BE AWESOME

  1. It would allow SVG's to be used with currentColor, since embedding would be allowed
  2. It would avoid the need for Embeds (which cannot be used in links) 
  3. It would efficiently use embedded / inline data, rather than doing multiple HTTP requests
  4. It would support SVG-specific attributes such as aria-hidden, focusable, and viewbox 
  5. Allow SVG libraries, with path-id referencing
  • Michael Wells
  • Oct 26 2018
  • Glenn Eastland commented
    11 Sep 09:47

    Would be useful. If the SVG is a single colour you can use Opactity and Filters but it's not a great substitute.

  • Ghous Shah commented
    13 Jun 19:54

    Please add this to webflow
    It will save us a LOT OF TIME

  • Leonardo Tanuwijaya commented
    09 May 23:48

    I've been dreading for this feature, would love for this feature to be realised. Webflow has been very important piece in my work and this feature would help a lot

  • Terry Hopper commented
    29 Jan 17:01

    Our site uses SVG extensively/exclusively. I'd especially like to cut down on the HTTP requests. This suggestion sounds perfect.

  • Mariia Kulida commented
    December 30, 2019 13:59

    please 

  • José Ernesto Rodríguez commented
    May 30, 2019 19:17

    💯 Would be great for all those icons!

  • Alex Furgiuele commented
    March 06, 2019 09:46

    Please! It is a fundamental thing to be able to manipulate SVG nowadays!

  • Christoffer Furnes commented
    November 23, 2018 10:06

    This would be great feature, as I then could also change the color of the svg icon inside buttons and link blocks when setting button states!

  • Luke Dorny commented
    November 14, 2018 19:07

    A great addition.

    Icons are currently used in the stock elements for navigation and ecommerce blocks that are essentially inline SVGs.

    Hoping for a feature upgrade soon.

  • and 107 more