Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/src/design-system/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ interface ImageProps extends ComponentPropsWithoutRef<"img"> {
/**
* Builds the placeholder background, mirroring next/image: the tiny blur image
* is stretched across an upscaled viewBox and run through a Gaussian blur, then
* used as the element background (`cover`) behind the real image until it loads.
* used as the element background (`cover`) until it loads. Transparent areas
* remain transparent.
*/
function blurBackground(
blurDataURL: string,
Expand All @@ -32,7 +33,6 @@ function blurBackground(
`%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ${svgWidth} ${svgHeight}'%3E` +
`%3Cfilter id='b' color-interpolation-filters='sRGB'%3E` +
`%3CfeGaussianBlur stdDeviation='20'/%3E` +
`%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E` +
`%3C/filter%3E` +
`%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='${blurDataURL}'/%3E` +
`%3C/svg%3E`;
Expand Down
Loading