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

react/no-unknown-property: allow viewbox on marker #3416

Closed
dylang opened this issue Sep 6, 2022 · 0 comments
Closed

react/no-unknown-property: allow viewbox on marker #3416

dylang opened this issue Sep 6, 2022 · 0 comments
Assignees

Comments

@dylang
Copy link

dylang commented Sep 6, 2022

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox

As of 7.31.7:

error: Invalid property 'viewBox' found on tag 'marker', but it is only allowed on: svg (react/no-unknown-property):
  18 |     <Styled.BubbleMeter height={Math.round(radius * 2)} width={Math.round(radius * 2)} role="presentation">
  19 |       <defs>
> 20 |         <marker id={markerId} viewBox="0 0 2 2" refX="1" refY="1" markerWidth="1" markerHeight="1" orient="auto">
     |                               ^
  21 |           <Styled.Cap cx="1" cy="1" r="1" palette={capPalette} strokeWidth="0" />
  22 |         </marker>
  23 |       </defs>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants