Spaces:
Running
Running
os ícones ainda não aparecem no sidebar
Browse files- components/sidebar.js +5 -4
components/sidebar.js
CHANGED
|
@@ -201,13 +201,14 @@ class CustomSidebar extends HTMLElement {
|
|
| 201 |
</div>
|
| 202 |
</div>
|
| 203 |
`;
|
| 204 |
-
|
| 205 |
// Inicializar feather icons no shadow DOM
|
| 206 |
-
|
|
|
|
| 207 |
if (window.feather) {
|
| 208 |
-
window.feather.
|
|
|
|
| 209 |
}
|
| 210 |
-
}
|
| 211 |
}
|
| 212 |
}
|
| 213 |
|
|
|
|
| 201 |
</div>
|
| 202 |
</div>
|
| 203 |
`;
|
|
|
|
| 204 |
// Inicializar feather icons no shadow DOM
|
| 205 |
+
this.shadowRoot.querySelectorAll('[data-feather]').forEach(icon => {
|
| 206 |
+
const iconName = icon.getAttribute('data-feather');
|
| 207 |
if (window.feather) {
|
| 208 |
+
const svg = window.feather.icons[iconName].toSvg();
|
| 209 |
+
icon.outerHTML = svg;
|
| 210 |
}
|
| 211 |
+
});
|
| 212 |
}
|
| 213 |
}
|
| 214 |
|