From c5cb6097b372dd048985ece102739c8c4d4d0f13 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 27 Jun 2023 13:24:11 +0800 Subject: [PATCH] Different alphas for light and dark highlights --- packages/web/components/patterns/HighlightView.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/web/components/patterns/HighlightView.tsx b/packages/web/components/patterns/HighlightView.tsx index fef8a662d..d12f3023e 100644 --- a/packages/web/components/patterns/HighlightView.tsx +++ b/packages/web/components/patterns/HighlightView.tsx @@ -74,6 +74,8 @@ export function HighlightView(props: HighlightViewProps): JSX.Element { const { getReferenceProps, getFloatingProps } = useInteractions([hover]) + const highlightAlpha = isDark ? 1.0 : 0.35 + return (