Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong style #13

Open
witalobenicio opened this issue Apr 9, 2019 · 1 comment
Open

Wrong style #13

witalobenicio opened this issue Apr 9, 2019 · 1 comment

Comments

@witalobenicio
Copy link

witalobenicio commented Apr 9, 2019

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
Copy link
Author

Sorry, the problem was in my SVG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant