From 64242abbbdb4be0e58838ada24e073aa23702e61 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Thu, 20 Jul 2023 15:50:37 -0700 Subject: [PATCH] refactor(icon): remove span PiperOrigin-RevId: 549763804 --- icon/lib/_icon.scss | 15 +++++++-------- icon/lib/icon.ts | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/icon/lib/_icon.scss b/icon/lib/_icon.scss index e7761160de..d96867aeda 100644 --- a/icon/lib/_icon.scss +++ b/icon/lib/_icon.scss @@ -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); } } diff --git a/icon/lib/icon.ts b/icon/lib/icon.ts index d169ad57de..5b01f14fdc 100644 --- a/icon/lib/icon.ts +++ b/icon/lib/icon.ts @@ -11,6 +11,6 @@ import {html, LitElement} from 'lit'; */ export class Icon extends LitElement { protected override render() { - return html``; + return html``; } }