-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
TPAC2025Topics for discussion at TPAC 2025Topics for discussion at TPAC 2025
Description
Web Share API images have optional title, but seem to be missing alt.
shareButton.addEventListener("click", async () => {
const file = new File(data, "some.png", { type: "image/png" });
try {
await navigator.share({
title: "Example File",
files: [file],
alt: "Marcos??? 🧐" // accessible text alternative for the image, equivalent to HTML alt attr
});
} catch (err) {
console.error("Share failed:", err.message);
}
});Metadata
Metadata
Assignees
Labels
TPAC2025Topics for discussion at TPAC 2025Topics for discussion at TPAC 2025