We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
aria-label
alt
img
1 parent d1a6186 commit 54e05a1Copy full SHA for 54e05a1
1 file changed
packages/transient-render-engine/src/model/defaultHTMLElementModels.ts
@@ -558,7 +558,7 @@ const renderedEmbeddedModelMap: HTMLModelRecord<
558
isVoid: true,
559
getReactNativeProps({ attributes }) {
560
// see https://w3c.github.io/html-aria/#el-img
561
- const label = attributes.alt || attributes['aria-label'];
+ const label = attributes['aria-label'] || attributes.alt;
562
if (label) {
563
return {
564
native: {
0 commit comments