[object Object]

← back to Designer Wallcoverings

novasuede chip: per-color data-dw-sample on Sample button + chip — central hub widget now color-aware on click delegation (parallel path to inline modal)

74822dc9ce9d5d391de284b552a7ccdd369d62c7 · 2026-05-07 22:27:41 -0700 · SteveStudio2

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 74822dc9ce9d5d391de284b552a7ccdd369d62c7
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Thu May 7 22:27:41 2026 -0700

    novasuede chip: per-color data-dw-sample on Sample button + chip — central hub widget now color-aware on click delegation (parallel path to inline modal)
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
 DW-Websites/Novasuede/index.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/DW-Websites/Novasuede/index.html b/DW-Websites/Novasuede/index.html
index f3c2d885..13da13da 100644
--- a/DW-Websites/Novasuede/index.html
+++ b/DW-Websites/Novasuede/index.html
@@ -2342,9 +2342,11 @@
             btnRow.appendChild(drapeBtn);
             var sampleBtn = document.createElement('button');
             sampleBtn.className = 'sample-btn-chip'; sampleBtn.type = 'button'; sampleBtn.textContent = '📦 Sample';
+            sampleBtn.setAttribute('data-dw-sample', 'Novasuede ' + color.name);
             (function(n) { sampleBtn.onclick = function(e) { e.stopPropagation(); openModalForColor(n); }; })(color.name);
             btnRow.appendChild(sampleBtn);
             info.appendChild(btnRow);
+            item.setAttribute('data-dw-sample', 'Novasuede ' + color.name);
             (function(n) { item.onclick = function() { openModalForColor(n); }; })(color.name);
             grid.appendChild(item);
         }

← 38d4c1d6 novasuede: unified header+modal across 7 pages, fix drapery  ·  back to Designer Wallcoverings  ·  fleet UX standardization: novasuede-style hamburger nav acro 1ef3bc10 →