mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Fixed close button on dark theme.
Resolves https://github.com/ajayyy/SponsorBlock/issues/196
This commit is contained in:
@@ -892,6 +892,8 @@ function openInfoMenu() {
|
|||||||
closeButton.classList.add("smallLink");
|
closeButton.classList.add("smallLink");
|
||||||
closeButton.setAttribute("align", "center");
|
closeButton.setAttribute("align", "center");
|
||||||
closeButton.addEventListener("click", closeInfoMenu);
|
closeButton.addEventListener("click", closeInfoMenu);
|
||||||
|
// Theme based color
|
||||||
|
closeButton.style.color = "var(--yt-spec-text-primary)";
|
||||||
|
|
||||||
//add the close button
|
//add the close button
|
||||||
popup.prepend(closeButton);
|
popup.prepend(closeButton);
|
||||||
|
|||||||
Reference in New Issue
Block a user