-
Notifications
You must be signed in to change notification settings - Fork 616
How to add new tag images
slifszyc edited this page Oct 6, 2014
·
2 revisions
Tags are used to classify laws into different 'categories'. We're providing a set of default tags under lib/tag-images
directory.
To add a new tag, just follow these steps:
- Download any
.svg
image you want. You can findsvg images
in http://www.flaticon.com/ or https://icomoon.io/ for example. - Place them under
lib/tag-images/images
. - Edit
lib/tag-images/component.json
file adding the newsvg images
to theimages
attribute of this file. - Add the new images in
lib/tag-images/index.js
file. - In your app, create the new tags assigning each one a new image.
That's it!
Visit our official website - Developed by Democracia en Red and contributors from the world over!