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 => {
6161 const { type, image } = getImageProps ( props ) ;
6262
6363 const altText = props . alternativeText ?. status === ValueStatus . Available ? props . alternativeText . value : undefined ;
64- const styleObject = constructStyleObject ( props ) ;
64+ const styleObject = type === "image" && constructStyleObject ( props ) ;
6565
6666 const imageStyle = { ...props . style , ...styleObject } ;
6767
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function ContentIcon(props: ImageContentIcon): ReactElement {
6969 return (
7070 < span
7171 className = { classNames ( props . icon , { glyphicon : props . isGlyph } ) }
72- style = { { fontSize : `${ props . size } px` } }
72+ style = { { ... props . style , fontSize : `${ props . size } px` } }
7373 { ...accessibilityProps }
7474 { ...onClickProps }
7575 />
You can’t perform that action at this time.
0 commit comments