diff --git a/packages/mgt/src/components/mgt-person/mgt-person.ts b/packages/mgt/src/components/mgt-person/mgt-person.ts index 678e63c6c4..ad5ec6ca97 100644 --- a/packages/mgt/src/components/mgt-person/mgt-person.ts +++ b/packages/mgt/src/components/mgt-person/mgt-person.ts @@ -808,7 +808,14 @@ export class MgtPerson extends MgtTemplatedComponent { return person && person.personImage ? person.personImage : null; } - private getInitials(person?: IDynamicPerson) { + /** + * Gets the user initials + * + * @protected + * @returns {string} + * @memberof MgtPerson + */ + protected getInitials(person?: IDynamicPerson): string { if (!person) { person = this.personDetails; } @@ -919,7 +926,15 @@ export class MgtPerson extends MgtTemplatedComponent { } } - private getColorFromName(name) { + /** + * Gets color from name + * + * @protected + * @param {string} name + * @returns {string} + * @memberof MgtPerson + */ + protected getColorFromName(name: string): string { const charCodes = name .split('') .map(char => char.charCodeAt(0))