overleaf-cep/services/web/frontend/js/features/utils/material-icon.ts
Tim Down 9c16a85295 Merge pull request #24030 from overleaf/td-bs5-remove-font-awesome
Remove Font Awesome in BS5

GitOrigin-RevId: 3ee9b136ac9ecda57ba9985d1da7d7a7e6b275e6
2025-07-18 08:05:06 +00:00

9 lines
224 B
TypeScript

export function materialIcon(type: string) {
const icon = document.createElement('span')
icon.className = 'material-symbols'
icon.textContent = type
icon.ariaHidden = 'true'
icon.translate = false
return icon
}