Skip to content

Settings and activity

1 result found

  1. 108 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    Dylan Pierce supported this idea  · 
    An error occurred while saving the comment
    Dylan Pierce commented  · 

    At the moment when Xd or Illustrator exports an SVG the SVG vectors are styled by classes:

    .cls-1 {
    fill: #fff;
    stroke: #6a6a6a;
    stroke-width: 3px;
    }

    .cls-2 {
    fill: #6a6a6a;
    }

    .cls-3 {
    stroke: none;
    }

    .cls-4 {
    fill: none;
    }

    But this is a problem because if you use multiple icons on a page their styles will override each other because they use the same classes.

    To fix, during the export process the program needs to use either inline styling (safest) or ID's to apply the styling.