feat: add minHeight and heading/body color controls to FDHeroBlock

This commit is contained in:
Jeffrey 2026-03-13 10:07:57 +01:00
parent 7bc3c23381
commit ea230696f7

View File

@ -230,11 +230,16 @@ export interface FDHeroBlock {
* Fullbreddsbild bakom texten. Lämna tom för enfärgad bakgrund.
*/
backgroundImage?: (number | null) | Media;
/**
* Kontrollerar sektionens minsta höjd när bakgrundsbild används
*/
minHeight?: ('auto' | 'sm' | 'md' | 'lg' | 'screen') | null;
/**
* Hur mörk overlay över bilden (för läsbarhet)
*/
overlayOpacity?: ('30' | '50' | '70') | null;
textColor?: ('auto' | 'white' | 'navy') | null;
headingColor?: ('auto' | 'yellow' | 'white' | 'navy') | null;
bodyColor?: ('auto' | 'white' | 'navy' | 'yellow') | null;
/**
* Ignoreras om bakgrundsbild är vald
*/
@ -2095,8 +2100,10 @@ export interface FDHeroBlockSelect<T extends boolean = true> {
secondaryCtaText?: T;
secondaryCtaLink?: T;
backgroundImage?: T;
minHeight?: T;
overlayOpacity?: T;
textColor?: T;
headingColor?: T;
bodyColor?: T;
theme?: T;
anchorId?: T;
id?: T;