From ca09dce90cd59530896cf9f6d1120b734e051285 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Wed, 12 Aug 2026 23:36:14 +0200 Subject: [PATCH] Feature icons: masked span painted by currentColor, not An image can't take the text color; a mask-image painted by background-color can. Icons now follow --feature-accent when the feature declares a color, and the surrounding text color otherwise. Co-Authored-By: Claude Sonnet 5 --- src/app.rs | 12 ++++++++++-- style/main.css | 7 +++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index bc8af67..70e5e13 100644 --- a/src/app.rs +++ b/src/app.rs @@ -699,8 +699,16 @@ fn AlternativeCard( let icon = feature.icon.clone(); view! {
- {icon.filter(|i| is_safe_icon_name(i)).map(|icon| view! { - + {icon.filter(|i| is_safe_icon_name(i)).map(|icon| { + // Masked span, not : an image can't take + // currentColor, a mask painted by background-color can. + let u = format!("https://api.iconify.design/{icon}.svg"); + view! { + + } })}