From f2ae43b0c1ba57189866887ed5a0ebb0801e8aa3 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 20 Dec 2023 06:26:32 +0000 Subject: [PATCH] Fix Highlighting of current QRG for Bootstrap5 --- assets/js/sections/bandmap_list.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/js/sections/bandmap_list.js b/assets/js/sections/bandmap_list.js index 1e7e8fba..7436d498 100644 --- a/assets/js/sections/bandmap_list.js +++ b/assets/js/sections/bandmap_list.js @@ -94,9 +94,11 @@ $(function() { if (distance<=20) { distance++; alpha=(.5/distance); - this.nodes().to$().css('background-color', 'rgba(0,0,255,' + alpha + ')'); + this.nodes().to$().css('--bs-table-bg', 'rgba(0,0,255,' + alpha + ')'); + this.nodes().to$().css('--bs-table-accent-bg', 'rgba(0,0,255,' + alpha + ')'); } else { - this.nodes().to$().css('background-color', ''); + this.nodes().to$().css('--bs-table-bg', ''); + this.nodes().to$().css('--bs-table-accent-bg', ''); } }); }