From e68e1330abc99bfad78ebe161cd29d4e3c2ab75d Mon Sep 17 00:00:00 2001 From: squidfunk Date: Mon, 15 Jan 2024 17:19:47 +0700 Subject: [PATCH] Fixed default tag icon overriding other icons --- material/templates/partials/icons.html | 2 +- src/templates/partials/icons.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/templates/partials/icons.html b/material/templates/partials/icons.html index 3fb55a6eb..5d903ed81 100644 --- a/material/templates/partials/icons.html +++ b/material/templates/partials/icons.html @@ -32,7 +32,7 @@ {% for type, icon in config.theme.icon.tag.items() %} {% import ".icons/" ~ icon ~ ".svg" as icon %} {% if type != "default" %} - {% set modifier = "--" ~ type %} + {% set modifier = ".md-tag--" ~ type %} {% endif %} {% set _ = style.append( ".md-tag" ~ modifier ~ "{" ~ diff --git a/src/templates/partials/icons.html b/src/templates/partials/icons.html index 7d5092b43..e29d3618b 100644 --- a/src/templates/partials/icons.html +++ b/src/templates/partials/icons.html @@ -56,7 +56,7 @@ {% for type, icon in config.theme.icon.tag.items() %} {% import ".icons/" ~ icon ~ ".svg" as icon %} {% if type != "default" %} - {% set modifier = "--" ~ type %} + {% set modifier = ".md-tag--" ~ type %} {% endif %} {% set _ = style.append( ".md-tag" ~ modifier ~ "{" ~