reicons icon indicating copy to clipboard operation
reicons copied to clipboard

Wrong style

Open witalobenicio opened this issue 5 years ago • 1 comments

Im getting the following error:

The style prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.

It's because some icons are generated like this:

IcCheck: {
    className: 'Icon--IcCheck',
    viewBox: '0 0 30 30',
    path: (
      <g>
        <path style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;isolation:auto;mix-blend-mode:normal" d="M26.98 5.99a1 1 0 0 0-.687.303L11 21.586l-6.293-6.293a1 1 0 1 0-1.414 1.414l7 7a1 1 0 0 0 1.414 0l16-16a1 1 0 0 0-.727-1.717z" font-weight="400" font-family="sans-serif" white-space="normal" overflow="visible" />
      </g>
    )
  }, 

style as string.

witalobenicio avatar Apr 09 '19 12:04 witalobenicio

Sorry, the problem was in my SVG.

witalobenicio avatar Apr 09 '19 12:04 witalobenicio