about summary refs log tree commit diff stats
path: root/src/pages/popup/switches.pug
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2023-09-17 22:01:02 +0300
committerManeraKai <manerakai@protonmail.com>2023-09-17 22:01:02 +0300
commit6b8e03fb8e57d91e5572270f54bf5c9a51fd9f15 (patch)
treed851bbf69d88aa0105d9fa16526ce8af208e2137 /src/pages/popup/switches.pug
parentAdded Custom service function for https://github.com/libredirect/browser_exte... (diff)
downloadlibredirect-6b8e03fb8e57d91e5572270f54bf5c9a51fd9f15.zip
Cleaned code. Fixed not able to select popup buttons with keyboard https://codeberg.org/LibRedirect/browser_extension/issues/106
Diffstat (limited to 'src/pages/popup/switches.pug')
-rw-r--r--src/pages/popup/switches.pug6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/popup/switches.pug b/src/pages/popup/switches.pug
index 91fbe72e..5037bac2 100644
--- a/src/pages/popup/switches.pug
+++ b/src/pages/popup/switches.pug
@@ -1,10 +1,10 @@
 each _, service in services    
-    div(class=service + " some-block hide")
+    div(class=`${service} block hide`)
         a(class="title" href=services[service].url)
             if services[service].imageType == 'svgMono'
                 img(class='dark' src=`/assets/images/${service}-icon.svg`)
                 img(class='light' src=`/assets/images/${service}-icon-light.svg`)
             else
                 img(src=`/assets/images/${service}-icon.${services[service].imageType}`)
-            h4=services[service].name
-        input(class=service + "-enabled" type="checkbox" aria-label=`${services[service].name} toggle`)
\ No newline at end of file
+            label=services[service].name
+        input(class=`${service}-enabled` type="checkbox" aria-label=`${services[service].name} toggle`)
\ No newline at end of file