File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/module/src/WidgetLayout Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,8 @@ const GridTile = ({
178178
179179 return (
180180 < Card
181- ouiaId = { `${ widgetType } -widget` }
182- className = { clsx ( 'grid-tile' , {
181+ ouiaId = { `${ widgetConfig . config ?. customization ?. scope } - ${ widgetType } -widget` }
182+ className = { clsx ( 'grid-tile' , widgetConfig . config ?. customization ?. scope , {
183183 static : widgetConfig . static ,
184184 } ) }
185185 >
@@ -222,7 +222,7 @@ const GridTile = ({
222222 </ Flex >
223223 </ CardHeader >
224224 < Divider />
225- < CardBody className = " pf-v6-u-p-0" > { children } </ CardBody >
225+ < CardBody className = { clsx ( ' pf-v6-u-p-0' , widgetConfig . config ?. customization ?. className ) } > { children } </ CardBody >
226226 </ Card >
227227 ) ;
228228} ;
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ export interface WidgetConfiguration {
4343 icon ?: React . ReactNode ;
4444 headerLink ?: WidgetHeaderLink ;
4545 title ?: string ;
46+ customization ?: {
47+ scope ?: string ;
48+ className ?: string ;
49+ } ;
4650}
4751
4852/**
You can’t perform that action at this time.
0 commit comments