File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
frontend/packages/thunder-shared-design/src/components/flow/adapters Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export default function ImageAdapter({
3838 maxHeight = '100%' ,
3939} : ImageAdapterProps ) : JSX . Element | null {
4040 const resolvedSrc = resolve ( component . src ?? '' ) ?? component . src ?? '' ;
41+ const resolvedAlt = resolve ( component . alt ?? '' ) ?? component . alt ?? '' ;
4142
4243 if ( ! resolvedSrc ) return null ;
4344
@@ -66,7 +67,7 @@ export default function ImageAdapter({
6667 width : cssWidth ,
6768 } }
6869 >
69- < span aria-label = { component . alt ?? '' } role = "img" style = { { fontSize : '100cqmin' , lineHeight : 1 } } >
70+ < span aria-label = { resolvedAlt } role = "img" style = { { fontSize : '100cqmin' , lineHeight : 1 } } >
7071 { extractEmojiFromUri ( resolvedSrc ) }
7172 </ span >
7273 </ span >
@@ -78,7 +79,7 @@ export default function ImageAdapter({
7879 component = "img"
7980 className = { cn ( 'Flow--image' ) }
8081 src = { resolvedSrc }
81- alt = { component . alt ?? '' }
82+ alt = { resolvedAlt }
8283 sx = { {
8384 width : component . width ? `${ component . width } px` : 'auto' ,
8485 height : component . height ? `${ component . height } px` : 'auto' ,
You can’t perform that action at this time.
0 commit comments