Skip to content

Commit

Permalink
refactor(icon): remove span
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 549763804
  • Loading branch information
Elliott Marquez authored and copybara-github committed Jul 20, 2023
1 parent 89b99a7 commit 64242ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions icon/lib/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ $_custom-property-prefix: 'icon';
-moz-osx-font-smoothing: grayscale;
}

span {
::slotted(svg) {
fill: currentColor;
}
::slotted(*) {
height: var(--_size);
width: var(--_size);
}
::slotted(svg) {
fill: currentColor;
}

::slotted(*) {
height: var(--_size);
width: var(--_size);
}
}
2 changes: 1 addition & 1 deletion icon/lib/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ import {html, LitElement} from 'lit';
*/
export class Icon extends LitElement {
protected override render() {
return html`<span><slot></slot></span>`;
return html`<slot></slot>`;
}
}

0 comments on commit 64242ab

Please sign in to comment.