DEV: fix some deprecated SVG icon refs

This commit is contained in:
Penar Musaraj
2019-01-22 14:42:00 -05:00
parent 62adc2eb98
commit 9886934ef5
26 changed files with 52 additions and 48 deletions

View File

@ -133,12 +133,20 @@ class PluginApi {
*
* // for the place in code that render a string
* string() {
* return "<i class='fa fa-smile-o'></i>";
* return "<svg class=\"fa d-icon d-icon-far-smile svg-icon\" aria-hidden=\"true\"><use xlink:href=\"#far-smile\"></use></svg>";
* },
*
* // for the places in code that render virtual dom elements
* node() {
* return h('i', { className: 'fa fa-smile-o' });
* return h("svg", {
* attributes: { class: "fa d-icon d-icon-far-smile", "aria-hidden": true },
* namespace: "http://www.w3.org/2000/svg"
* },[
* h("use", {
* "xlink:href": attributeHook("http://www.w3.org/1999/xlink", `#far-smile`),
* namespace: "http://www.w3.org/2000/svg"
* })]
* );
* }
* });
**/