Skip to content

Commit

Permalink
fix(react): preview iframe missing accessible name
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Aug 20, 2024
1 parent 99e694d commit 17dc3ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/react/src/Panels/PreviewPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ function Preview({ preview, iframe, previewCount, first, last, toggleTerminal, i
if (preview.url) {
iframe.ref.src = preview.url;
}

if (preview.title) {
iframe.ref.title = preview.title;
}
}, [preview.url, iframe.ref]);

return (
Expand Down

0 comments on commit 17dc3ed

Please sign in to comment.