From a2dcf2f072d1591aa9b835df599a1c25fe01882d Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 4 Jun 2026 17:24:07 -0500 Subject: [PATCH] fix: skip overlay background on solid colour and gradient hero modes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The overlay's semi-transparent background was covering the gradient, making it invisible. Color/gradient modes use controlled backgrounds that don't need an overlay for text readability — the card handles that. Overlay layout (flex positioning) is preserved. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- src/tmpl/default.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tmpl/default.php b/src/tmpl/default.php index 8720a9c..5c1b96d 100644 --- a/src/tmpl/default.php +++ b/src/tmpl/default.php @@ -62,7 +62,10 @@ $overlayDirections = [ 'gradient-right' => 'to right', ]; -if ($overlayType !== 'solid' && isset($overlayDirections[$overlayType])) { +// Skip overlay on solid colour/gradient modes — background is already a controlled design choice +if ($heroMode === 'color' || $heroMode === 'gradient') { + $overlayBg = ''; +} elseif ($overlayType !== 'solid' && isset($overlayDirections[$overlayType])) { $dir = $overlayDirections[$overlayType]; $overlayBg = "background: linear-gradient($dir, $rgbaTransparent, $rgbaOpaque);"; } else {