From 60d9cc1a3ba988c0f578eaefa13afe18dba74deb Mon Sep 17 00:00:00 2001
From: Magnus Walbeck <mw@mwalbeck.org>
Date: Sun, 17 Sep 2023 12:52:48 +0200
Subject: [PATCH] Fix unreadable icon in text toolbar when tool option is
 selected. Fixes #336

---
 css/apps/core/_text.scss | 5 +++++
 css/server-automatic.css | 4 ++++
 css/server.css           | 5 +++++
 3 files changed, 14 insertions(+)

diff --git a/css/apps/core/_text.scss b/css/apps/core/_text.scss
index b1a6569..bdcefb0 100644
--- a/css/apps/core/_text.scss
+++ b/css/apps/core/_text.scss
@@ -73,3 +73,8 @@
         opacity: 1 !important;
     }
 }
+
+.text-menubar .entry-action.is-active:not(.entry-action-item) .material-design-icon > svg,
+.text-menubar button.entry-action__button.is-active .material-design-icon > svg {
+	fill: var(--color-primary-text) !important;
+}
diff --git a/css/server-automatic.css b/css/server-automatic.css
index 534ac52..c29eba2 100644
--- a/css/server-automatic.css
+++ b/css/server-automatic.css
@@ -869,6 +869,10 @@
   .emoji-list .emoji-list__item {
     opacity: 1 !important;
   }
+  .text-menubar .entry-action.is-active:not(.entry-action-item) .material-design-icon > svg,
+  .text-menubar button.entry-action__button.is-active .material-design-icon > svg {
+    fill: var(--color-primary-text) !important;
+  }
   /***
    * @copyright Copyright (c) 2017, Magnus Walbeck <mw@mwalbeck.org>
    *
diff --git a/css/server.css b/css/server.css
index adaeab5..962ec8e 100644
--- a/css/server.css
+++ b/css/server.css
@@ -942,6 +942,11 @@ table tr.mouseOver td {
   opacity: 1 !important;
 }
 
+.text-menubar .entry-action.is-active:not(.entry-action-item) .material-design-icon > svg,
+.text-menubar button.entry-action__button.is-active .material-design-icon > svg {
+  fill: var(--color-primary-text) !important;
+}
+
 /***
  * @copyright Copyright (c) 2017, Magnus Walbeck <mw@mwalbeck.org>
  *