FourLabs-UN2 commited on
Commit
7086f0e
·
verified ·
1 Parent(s): 28e4f2d

os ícones ainda não aparecem no sidebar

Browse files
Files changed (1) hide show
  1. 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
- setTimeout(() => {
 
207
  if (window.feather) {
208
- window.feather.replace();
 
209
  }
210
- }, 100);
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