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

Framework: Change SVG attributes to camelCase #5950

Closed
ockham opened this issue Jun 9, 2016 · 1 comment
Closed

Framework: Change SVG attributes to camelCase #5950

ockham opened this issue Jun 9, 2016 · 1 comment

Comments

@ockham
Copy link
Contributor

ockham commented Jun 9, 2016

React 15 enables all SVG attributes -- but as with all things React, they're camelCased. We do have some inline <svg>s, but some of them have been using attributes like fill-rule that have been ignored. We should change those to camelCase. This will be more complicated with generated code (Gridicons, SocialLogos). Fortunately, AFAICS this doesn't seem to break any existing functionality, so we can tackle this after the React 15 upgrade (#5116).

This will also allow us to stop relying on SVGs defined in string consts and then rendered using dangerouslySetInnerHTML. I've started a PR for this, #5164.

obenland added a commit that referenced this issue Oct 7, 2016
Avoids two “Unknown DOM property” warnings when displaying sharing
options in `my-sites/sharing`.

See
https://facebook.github.io/react/docs/tags-and-attributes.html#svg-attri
butes
See #5950.
obenland added a commit that referenced this issue Oct 7, 2016
Avoids two “Unknown DOM property” warnings when displaying sharing
options in `my-sites/sharing`.

See
https://facebook.github.io/react/docs/tags-and-attributes.html#svg-attri
butes
See #5950.
@stale
Copy link

stale bot commented Jan 11, 2018

This issue has been marked as stale because it hasn't been updated in a while. It will be closed in a week. If you would like it to remain open, can you please comment below and see what you can do to get things moving with this issue? Thanks! 🙏

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

No branches or pull requests

1 participant