File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ const ImageCard = (props: ImageCardProps) => {
8080 rel = { target === '_blank' ? 'noopener noreferrer' : undefined }
8181 className = { b ( { border, 'with-content' : hasContent , direction} ) }
8282 title = { urlTitle }
83+ style = { { backgroundColor} }
8384 extraProps = { {
8485 draggable : false ,
8586 onDragStart : ( e : React . DragEvent < HTMLAnchorElement > ) => e . preventDefault ( ) ,
Original file line number Diff line number Diff line change @@ -159,13 +159,15 @@ export const DirectionReverse = MultipleTemplate.bind({});
159159export const Content = ContentTemplate . bind ( { } ) ;
160160export const BackgroundColor = MultipleTemplate . bind ( { } ) ;
161161export const WithUrl = MultipleTemplate . bind ( { } ) ;
162+ export const WithUrlAndBackgroundColor = BorderTemplate . bind ( { } ) ;
162163export const Border = BorderTemplate . bind ( { } ) ;
163164export const BorderRadius = BorderRadiusTemplate . bind ( { } ) ;
164165export const ControlPosition = ControlPositionTemplate . bind ( { } ) ;
165166
166167DirectionReverse . args = { direction : 'reverse' } as Partial < ImageCardProps > ;
167168BackgroundColor . args = { ...data . backgroundColor . content } ;
168169WithUrl . args = { ...data . withUrl . content } ;
170+ WithUrlAndBackgroundColor . args = { ...data . withUrlAndBackgroundColor . content } ;
169171ControlPosition . args = undefined ;
170172ControlPosition . argTypes = {
171173 title : { table : { disable : true } } ,
Original file line number Diff line number Diff line change 5353 "url" : " https://example.com"
5454 }
5555 },
56+ "withUrlAndBackgroundColor" : {
57+ "content" : {
58+ "url" : " https://example.com" ,
59+ "backgroundColor" : " #ccf0d2"
60+ }
61+ },
5662 "content" : {
5763 "url" : " https://example.com" ,
5864 "links" : [
You can’t perform that action at this time.
0 commit comments