Fix link visible inside spoiler (#2215)
authorAjay Bura <32841439+ajbura@users.noreply.github.com>
Wed, 19 Feb 2025 11:07:33 +0000 (22:07 +1100)
committerGitHub <noreply@github.com>
Wed, 19 Feb 2025 11:07:33 +0000 (22:07 +1100)
* hide links in spoiler

* prevent link click inside spoiler

src/index.scss

index 563f611f7db50fa1a0ad9147769995778892d3e4..14bf47493f0a5e93aca274f19db62948e0735529 100644 (file)
@@ -427,6 +427,12 @@ a {
     text-decoration: underline;
   }
 }
+
+[data-mx-spoiler][aria-pressed='true'] a {
+  color: transparent;
+  pointer-events: none;
+}
+
 b {
   font-weight: var(--fw-medium);
 }