OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/helpers/op-icon-builder.ts

11 lines
286 B

/**
* Return an <i> HTML element with the given icon classes
* and aria-hidden=true set.
*/
export function opIconElement(...classes:string[]) {
let icon = document.createElement('i');
icon.setAttribute('aria-hidden', 'true');
icon.classList.add(...classes);
return icon;
}