« get me outta code hell

content, test: generateAlbumSecondaryNav: primary-only color context - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-01 00:28:14 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-01 15:34:02 -0400
commitc94d606dc80d5361ddce7bb0844056716b8af393 (patch)
tree9b77a85aedc982375b4d53a880a4f6cbd080d6b5
parent86418c8f864fcd251589440c69ec99c6ea58ae70 (diff)
content, test: generateAlbumSecondaryNav: primary-only color context
-rw-r--r--src/content/dependencies/generateAlbumSecondaryNav.js2
-rw-r--r--tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/generateAlbumSecondaryNav.js b/src/content/dependencies/generateAlbumSecondaryNav.js
index d2dd7db7..e574455c 100644
--- a/src/content/dependencies/generateAlbumSecondaryNav.js
+++ b/src/content/dependencies/generateAlbumSecondaryNav.js
@@ -120,7 +120,7 @@ export default {
 
             return (
               html.tag('span',
-                colorStyle,
+                colorStyle.slot('context', 'primary-only'),
 
                 [
                   language.$('albumSidebar.groupBox.title', {
diff --git a/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs
index 29d06283..ce5ba311 100644
--- a/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs
+++ b/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs
@@ -7,11 +7,11 @@
 'use strict'
 exports[`test/snapshot/generateAlbumSecondaryNav.js > TAP > generateAlbumSecondaryNav (snapshot) > basic behavior, mode: album 1`] = `
 <nav id="secondary-nav" class="nav-links-groups">
-    <span style="--primary-color: #abcdef; --dark-color: #21272e; --dim-color: #818181; --dim-ghost-color: #818181cc; --bg-color: #161616cc; --bg-black-color: #06090bcc; --shadow-color: #0d0d0dcc">
+    <span style="--primary-color: #abcdef">
         <a href="group/vcg/">VCG</a>
         (<a href="album/first/" title="First">Previous</a>, <a href="album/last/" title="Last">Next</a>)
     </span>
-    <span style="--primary-color: #123456; --dark-color: #0e2842; --dim-color: #000000; --dim-ghost-color: #000000cc; --bg-color: #161616cc; --bg-black-color: #000913cc; --shadow-color: #0d0d0dcc">
+    <span style="--primary-color: #123456">
         <a href="group/bepis/">Bepis</a>
         (<a href="album/second/" title="Second">Next</a>)
     </span>