Skip to content

Add support for stroke-based icons#284

Open
tromgy wants to merge 1 commit into
react-icons:masterfrom
tromgy:master
Open

Add support for stroke-based icons#284
tromgy wants to merge 1 commit into
react-icons:masterfrom
tromgy:master

Conversation

@tromgy

@tromgy tromgy commented Jan 30, 2020

Copy link
Copy Markdown

This is to address issue #282. Icons having stroke attribute will now render properly. Fill-based (stroke-less) icons will render as before.

Here's what this pull request tries to accomplish:

  • Add support for SVGs with: inline styles, internal CSS, stroke presentation attributes, and <text>
  • Add Predix Design System icons
  • Change the build process to copy the artifacts into the preview for easy verification
  • Disable linting of generated code (it takes hours to lint it, and it's of little value)
  • Add react plugin for eslint, so the demo code can be linted properly as JSX
  • Fix few of the remaining linting errors
  • Document how to add icons in README.md

- Add support for SVGs with: inline styles, internal CSS, stroke presentation attributes, and <text>
- Add Predix Design System icons
- Change the build process to copy the artifacts into the preview for easy verification
- Disable linting of generated code (it takes hours to lint it, and it's of little value)
- Add react plugin for eslint, so the demo code can be linted properly as JSX
- Fix few of the remaining linting errors
- Document how to add icons in README.md
@kamijin-fanta

Copy link
Copy Markdown
Member

Thank you for your contribution!

Currently, I am recursively checking using HasStrokes at runtime, but I think that it can be solved at build time.

Also, please submit the PR of project settings(eslint etc) and new functions in separate PRs.

@tromgy

tromgy commented Nov 28, 2020

Copy link
Copy Markdown
Author

I agree that it makes sense to split it into two separate requests. I tried to split this one, but that turned out to be tricky if at all possible, and I had to revert it so it is as it was back in January. I'm going to try creating two separate requests from two different branches of my forked repo.

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

Labels

enhancement pending Pending for some reason

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants