@@ -19,7 +19,12 @@ import {BREAKPOINTS} from '../../constants';
19
19
20
20
const b = block ( 'header-block' ) ;
21
21
22
- export type HeaderBlockFullProps = HeaderBlockProps & ClassNameProps ;
22
+ type ElementsClassName = {
23
+ gridClassName ?: string ;
24
+ mediaClassName ?: string ;
25
+ } ;
26
+
27
+ export type HeaderBlockFullProps = HeaderBlockProps & ClassNameProps & ElementsClassName ;
23
28
24
29
interface BackgroundProps {
25
30
background : HeaderBlockBackground ;
@@ -78,13 +83,15 @@ export const HeaderBlock = (props: React.PropsWithChildren<HeaderBlockFullProps>
78
83
theme : textTheme = 'light' ,
79
84
verticalOffset = 'm' ,
80
85
className,
86
+ gridClassName,
81
87
breadcrumbs,
82
88
status,
83
89
renderTitle,
84
90
children,
85
91
mediaView = 'full' ,
86
92
centered,
87
93
additionalInfo,
94
+ mediaClassName,
88
95
} = props ;
89
96
const windowWidth = useWindowWidth ( ) ;
90
97
const isMobile = windowWidth <= BREAKPOINTS . sm ;
@@ -122,7 +129,7 @@ export const HeaderBlock = (props: React.PropsWithChildren<HeaderBlockFullProps>
122
129
>
123
130
{ backgroundThemed && fullWidth && < FullWidthBackground background = { backgroundThemed } /> }
124
131
{ backgroundThemed && < Background background = { backgroundThemed } isMobile = { isMobile } /> }
125
- < Grid containerClass = { b ( 'container-fluid' ) } >
132
+ < Grid containerClass = { b ( 'container-fluid' ) } className = { b ( null , gridClassName ) } >
126
133
{ breadcrumbs && (
127
134
< Row className = { b ( 'breadcrumbs' ) } >
128
135
< Col >
@@ -212,7 +219,7 @@ export const HeaderBlock = (props: React.PropsWithChildren<HeaderBlockFullProps>
212
219
</ Row >
213
220
{ hasRightSideImage && (
214
221
< Media
215
- className = { b ( 'media' , { [ curImageSize ] : true } ) }
222
+ className = { b ( 'media' , { [ curImageSize ] : true } , mediaClassName ) }
216
223
videoClassName = { b ( 'video' ) }
217
224
imageClassName = { b ( 'image' ) }
218
225
{ ...mediaWithMicrodata }
0 commit comments