From e6ef3712a58932d7c5e81c665494d1d2d559095e Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Fri, 25 Oct 2024 21:32:26 +0200 Subject: [PATCH] Refactor baseline icon, `light-dark()` support & inline SVG Partially based on https://github.com/web-platform-dx/baseline-status/pull/22 --- .../BaselineIcon.astro | 114 ++++++++++++------ 1 file changed, 79 insertions(+), 35 deletions(-) diff --git a/packages/astro-embed-baseline-status/BaselineIcon.astro b/packages/astro-embed-baseline-status/BaselineIcon.astro index ba45ce9..5279edf 100644 --- a/packages/astro-embed-baseline-status/BaselineIcon.astro +++ b/packages/astro-embed-baseline-status/BaselineIcon.astro @@ -4,50 +4,94 @@ import type { StatusLevel } from './types'; interface Props { support: StatusLevel; } + +const paths = { + limited: ``, + widely: ``, + newly: ``, + no_data: ``, +}; --- - +