Commit Graph

21 Commits

Author SHA1 Message Date
drinking-code
dca4f121b8
feat: Update tags.json
Thank you, @drinking-code! 🙌
2020-02-07 08:50:59 -08:00
Max Reynolds
91118a67b6 feat: Update tags.json (#797) 2019-12-10 11:57:57 -08:00
Cole Bemis
10e4e38ae1 feat: Add framer icon 2019-06-06 09:21:49 -07:00
Cole Bemis
8f658193d2 feat: Add hexagon icon 2019-03-30 10:22:17 -07:00
Cole Bemis
74aafa1b4e feat: Add codesandbox icon 2019-03-30 10:22:17 -07:00
Ash Guillaume
5d42ac8398
Merge pull request #549 from feathericons/add-x-octagon
Add x-octagon icon
2019-02-26 10:50:35 -08:00
Cole Bemis
6cdea52f27 feat: Add x-octagon icon 2019-02-25 22:35:05 -08:00
Cole Bemis
eb106953ae feat: Add figma icon 2019-02-25 22:29:30 -08:00
Ash Guillaume
0a130b77e0 feat: Add pen-tool icon (#522) 2019-01-29 10:14:03 -08:00
Ash Guillaume
55c84ac47c feat: Add mouse-pointer icon 2019-01-28 20:29:10 -08:00
Luke Deen Taylor
fff965df89 fix: Add tags for search icon 2019-01-27 20:31:14 -08:00
Ash Guillaume
8da557c9dd feat: Add key icon 2019-01-24 22:20:34 -08:00
Cole Bemis
fcd491c8a2 feat: Add smile, frown and meh emoji icons 2018-12-23 01:59:36 -08:00
Cole Bemis
61803f2129 feat: Add coffee icon 2018-10-27 21:05:59 -07:00
Cole Bemis
031f305c83 feat: Add icon 2018-03-01 23:05:04 -08:00
Cole Bemis
1180d2d8b4 feat: Add gift icon 2018-03-01 23:05:04 -08:00
Afnizar Nur Ghifari
6999eeba10
Fix typo on icon tags 2017-12-22 13:41:11 +07:00
Afnizar Nur Ghifari
9e681f8f89
Add icon tags 2017-12-22 13:14:05 +07:00
Cole Bemis
483a3f1738 feat: Add more tags 2017-12-15 00:28:36 -08:00
Cole Bemis
f58b75faf0 feat: Add more tags to tags.json 2017-12-14 02:01:19 -08:00
Cole Bemis
f243624fbd
feat: Update API
BREAKING CHANGE: 

Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'

/* AFTER */
feather.icons.x
// {
//    name: 'x',
//    contents: '<line ... /><line ... />`,
//    tags: ['cancel', 'close', 'delete', 'remove'],
//    attrs: {
//      class: 'feather feather-x',
//      xmlns: 'http://www.w3.org/2000/svg',
//      width: 24,
//      height: 24,
//      viewBox: '0 0 24 24',
//      fill: 'none',
//      stroke: 'currentColor',
//      'stroke-width': 2,
//      'stroke-linecap': 'round',
//      'stroke-linejoin': 'round',
//    }
// }
```

`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')

/* AFTER */
feather.icons.x.toSvg()
```

`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:

```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-18 20:00:16 -08:00