11import { html , LitElement , nothing , type PropertyValues } from 'lit' ;
22import { property , state } from 'lit/decorators.js' ;
33import { ifDefined } from 'lit/directives/if-defined.js' ;
4- import { themes } from '../../theming/theming-decorator .js' ;
4+ import { addThemingController } from '../../theming/theming-controller .js' ;
55import { addInternalsController } from '../common/controllers/internals.js' ;
66import { registerComponent } from '../common/definitions/register.js' ;
77import type { AvatarShape } from '../types.js' ;
@@ -22,7 +22,6 @@ import { all } from './themes/themes.js';
2222 * @csspart image - The image wrapper of the avatar.
2323 * @csspart icon - The icon wrapper of the avatar.
2424 */
25- @themes ( all )
2625export default class IgcAvatarComponent extends LitElement {
2726 public static readonly tagName = 'igc-avatar' ;
2827 public static override styles = [ styles , shared ] ;
@@ -70,6 +69,11 @@ export default class IgcAvatarComponent extends LitElement {
7069 @property ( { reflect : true } )
7170 public shape : AvatarShape = 'square' ;
7271
72+ constructor ( ) {
73+ super ( ) ;
74+ addThemingController ( this , all ) ;
75+ }
76+
7377 protected override willUpdate ( changedProperties : PropertyValues < this> ) : void {
7478 if ( changedProperties . has ( 'initials' ) || changedProperties . has ( 'alt' ) ) {
7579 this . _internals . setARIA ( {
0 commit comments