Skip to content

Add title attribute to embed iframe#1132

Merged
demiankatz merged 1 commit into
UniversalViewer:devfrom
Saira-A:637
Oct 17, 2024
Merged

Add title attribute to embed iframe#1132
demiankatz merged 1 commit into
UniversalViewer:devfrom
Saira-A:637

Conversation

@Saira-A

@Saira-A Saira-A commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

fixes #637

@vercel

vercel Bot commented Oct 17, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2024 11:04am

@demiankatz demiankatz changed the title Add title attribute Add title attribute to embed iframe Oct 17, 2024

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @Saira-A, this looks good to me. I tested every extension that I knew how to, and confirmed that the fix works everywhere. (The only thing I wasn't 100% sure about was which extension gets used for 3-D models -- it's either uv-aleph-extension or uv-model-viewer-extension depending on the file format; whichever one of those I tested with the astonaut model worked fine, but I'm not sure how to trigger the other one... in any case, since the pattern is consistent everywhere, I'm reasonably confident it works correctly).

@demiankatz

Copy link
Copy Markdown
Contributor

(Bottom line: it wouldn't hurt to get somebody else's eyes on this, especially if they know how to trigger both 3-D viewers... but I think it's safe to merge regardless).

@Saira-A

Saira-A commented Oct 17, 2024

Copy link
Copy Markdown
Contributor Author

Thanks, @Saira-A, this looks good to me. I tested every extension that I knew how to, and confirmed that the fix works everywhere. (The only thing I wasn't 100% sure about was which extension gets used for 3-D models -- it's either uv-aleph-extension or uv-model-viewer-extension depending on the file format; whichever one of those I tested with the astonaut model worked fine, but I'm not sure how to trigger the other one... in any case, since the pattern is consistent everywhere, I'm reasonably confident it works correctly).

Me too - I'm pretty sure the astronaut is model-viewer but couldn't find an aleph manifest

@demiankatz

Copy link
Copy Markdown
Contributor

Me too - I'm pretty sure the astronaut is model-viewer but couldn't find an aleph manifest

It looks like the Aleph extension is used for DICOM images; see:

this._extensionRegistry[MediaType.DICOM] = Extension.ALEPH;

I wonder if perhaps @edsilv can point us to a DICOM example manifest that we can incorporate into the standard example list....

@LanieOkorodudu

Copy link
Copy Markdown
Contributor

@demiankatz @Saira-A, I've tested the Vercel app and confirmed that the fix works well across all extensions. The addition of the title attribute to the embed iframe enhances accessibility, and everything is functioning as expected.

@demiankatz

Copy link
Copy Markdown
Contributor

Thanks, @Saira-A and @LanieOkorodudu! I'm going to go ahead and merge this; we can double-check the aleph case if we get an example, but I'm reasonably confident that it will be fine in the meantime. :-)

@demiankatz demiankatz merged commit 39ee05b into UniversalViewer:dev Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Community Sprint COMPLETED

Development

Successfully merging this pull request may close these issues.

3 participants