Skip to content

Commit

Permalink
fix(sbb-icon): ensure sbb-angular compatibility (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Sep 12, 2024
1 parent e9ede89 commit ef4b587
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/elements/icon/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ import { SbbIconBase } from './icon-base.js';
*/
@customElement('sbb-icon')
export class SbbIconElement extends SbbIconBase {
/**
* We need to additionally observe the svgicon attribute
* for sbb-angular compatibility.
* @internal
*/
public static override get observedAttributes(): string[] {
return super.observedAttributes.concat('svgicon');
}

/**
* The provided name consisting of the namespace and the name of the icon.
* If the namespace is missing, the default namespace "sbb" will be used.
Expand Down

0 comments on commit ef4b587

Please sign in to comment.