From a9e58dcf2136a9b9b10c3c4a0a28995c014d7235 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 7 Aug 2022 18:11:10 +0300 Subject: [PATCH] Use [checked="true"] in menuitem selectors This was only using [checked] to check if the item is checked, but the attribute can also be "false". --- chrome/custom_menupopup_check_icons.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/custom_menupopup_check_icons.css b/chrome/custom_menupopup_check_icons.css index 0f1f688..101d381 100644 --- a/chrome/custom_menupopup_check_icons.css +++ b/chrome/custom_menupopup_check_icons.css @@ -26,10 +26,10 @@ menuitem:is([type="checkbox"],[type="radio"]) > .menu-iconic-left{ menuitem[type="radio"] > .menu-iconic-left{ border-radius: 100%; } -menuitem[type="radio"][checked] > .menu-iconic-left{ +menuitem[type="radio"][checked="true"] > .menu-iconic-left{ background-image: radial-gradient( AccentColor 40%, transparent 50%); list-style-image: none !important; } -menuitem[type="checkbox"][checked] > .menu-iconic-left{ +menuitem[type="checkbox"][checked="true"] > .menu-iconic-left{ background-image: url("chrome://global/skin/icons/check.svg"); }