File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/pluggableWidgets/image-web/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export const Image: FunctionComponent<ImageContainerProps> = props => {
61
61
const { type, image } = getImageProps ( props ) ;
62
62
63
63
const altText = props . alternativeText ?. status === ValueStatus . Available ? props . alternativeText . value : undefined ;
64
- const styleObject = constructStyleObject ( props ) ;
64
+ const styleObject = type === "image" && constructStyleObject ( props ) ;
65
65
66
66
const imageStyle = { ...props . style , ...styleObject } ;
67
67
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function ContentIcon(props: ImageContentIcon): ReactElement {
69
69
return (
70
70
< span
71
71
className = { classNames ( props . icon , { glyphicon : props . isGlyph } ) }
72
- style = { { fontSize : `${ props . size } px` } }
72
+ style = { { ... props . style , fontSize : `${ props . size } px` } }
73
73
{ ...accessibilityProps }
74
74
{ ...onClickProps }
75
75
/>
You can’t perform that action at this time.
0 commit comments