Skip to content

Commit

Permalink
refactor(sbb-icon): remove host attribute comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga committed Sep 21, 2023
1 parent 0b4aceb commit 9a1060e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion ci/lit-migration.mts
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ declare global {
(n) => ts.isReturnStatement(n) || ts.isVariableStatement(n),
)!;
if (codeToAdd.length > 0) {
codeToAdd.unshift('// ## Host attributes ##');
codeToAdd.unshift('// ## Migr: Host attributes ##');
codeToAdd.push('// ####');
}
mutator.insertAt(node, codeToAdd.join('\n') + '\n\n');
Expand Down
2 changes: 0 additions & 2 deletions src/components/sbb-icon/sbb-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,9 @@ export class SbbIcon extends LitElement {
}

protected override render(): TemplateResult {
// ## Host attributes ##
setAttribute(this, 'role', 'img');
setAttribute(this, 'data-namespace', this._svgNamespace);
setAttribute(this, 'data-empty', !this._svgIcon && !this._svgFetchInProgress);
// ####

return html`
${this._svgIcon
Expand Down

0 comments on commit 9a1060e

Please sign in to comment.