From 7cedb933d819fad0720c0f5b41f1e2953cdf201e Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Fri, 30 May 2025 16:38:47 +0200 Subject: [PATCH] d --- admin-dashboard.html | 49 +++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index 6ff9032..916bd95 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -3228,6 +3228,13 @@ function updateBannerPreview() { const bannerBgColor = document.getElementById('bannerBgColor')?.value || template.backgroundColor || '#f8f9fa'; const bannerTextColor = document.getElementById('bannerTextColor')?.value || template.textColor || '#212529'; const bannerTextAlign = document.getElementById('bannerTextAlign')?.value || template.textAlign || 'left'; + + // Debug log for text color + console.log('Text color values:', { + formField: document.getElementById('bannerTextColor')?.value, + template: template.textColor, + final: bannerTextColor + }); const bannerFontSize = document.getElementById('bannerFontSize')?.value || template.fontSize || 16; const bannerPadding = document.getElementById('bannerPadding')?.value || template.padding || 20; const bannerMargin = document.getElementById('bannerMargin')?.value || template.margin || 20; @@ -3269,22 +3276,19 @@ function updateBannerPreview() { buttonBorder: bannerButtonBorder }; - // Create text content with template styles - const textStyle = ` - font-size: ${styles.fontSize}; - color: ${styles.textColor}; - text-align: ${styles.textAlign}; - margin: 0; - padding: 20px 0; - line-height: 1.5; - flex: 1; - ${template.textStyle || ''} - ${styles.textShadow ? `text-shadow: ${styles.textShadow};` : ''} - `; - - // Create the text element + // Create the banner content with proper text color inheritance const textElement = ` -