Skip to content

Commit

Permalink
feat: add aria-lable to object element (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroferreira1 authored Sep 2, 2021
1 parent df0da66 commit 00a569f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/token/TokenNFTPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const TokenNFTPreview = (props) => {
} else if (nftType === NFT_MEDIA_TYPES.pdf) {
// Toolbar to prevent showing download/print icons
const data = `${token.meta.nft.file}#toolbar=0`;
media = <object data={data} width="100%" height="100%" type="application/pdf" alt="NFT Preview" />;
media = <object data={data} width="100%" height="100%" type="application/pdf" alt="NFT Preview" aria-label="NFT Preview" />;
} else {
media = <p> Preview Unavailable </p>
}
Expand Down

0 comments on commit 00a569f

Please sign in to comment.