Skip to content

Commit

Permalink
make blur from private box more restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
sauldom102 committed Nov 29, 2024
1 parent 95a5797 commit f43af39
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/experimental/Utilities/PrivateBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ import { FC, PropsWithChildren } from "react"
export const PrivateBox: FC<PropsWithChildren> = ({ children }) => {
const { enabled } = usePrivacyMode()

return <div className={cn(enabled && "blur-md", "inline")}>{children}</div>
return (
<div
className={cn(enabled && "select-none blur-sm", "inline")}
aria-hidden={enabled}
>
{children}
</div>
)
}

0 comments on commit f43af39

Please sign in to comment.