From 2450457fe5c85d7a4d01e5e1d0f928d0087adc26 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 10 Feb 2020 21:54:11 -0500 Subject: [PATCH] Fixed close button on dark theme. Resolves https://github.com/ajayyy/SponsorBlock/issues/196 --- src/content.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content.ts b/src/content.ts index 709c05a1..f07bef16 100644 --- a/src/content.ts +++ b/src/content.ts @@ -892,6 +892,8 @@ function openInfoMenu() { closeButton.classList.add("smallLink"); closeButton.setAttribute("align", "center"); closeButton.addEventListener("click", closeInfoMenu); + // Theme based color + closeButton.style.color = "var(--yt-spec-text-primary)"; //add the close button popup.prepend(closeButton);