-
Notifications
You must be signed in to change notification settings - Fork 617
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
.svgimage you want. You can findsvg imagesin http://www.flaticon.com/ or https://icomoon.io/ for example. - Place them under
lib/tag-images/images. - Edit
lib/tag-images/component.jsonfile adding the newsvg imagesto theimagesattribute of this file. - Add the new images in
lib/tag-images/index.jsfile. - 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!