From 791c9a9113621d19abb9a73bfe940a6de43cd286 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 7 Oct 2022 14:13:49 +0800 Subject: [PATCH] Always treat highlightBackground as an array not a color now. This lets us apply alpha differently to backgrounds and underlines --- packages/web/components/patterns/HighlightView.tsx | 2 +- .../components/patterns/LibraryCards/HighlightItemCard.tsx | 2 +- packages/web/components/tokens/stitches.config.ts | 2 +- packages/web/styles/articleInnerStyling.css | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/web/components/patterns/HighlightView.tsx b/packages/web/components/patterns/HighlightView.tsx index 5ada52dd4..6e69f9842 100644 --- a/packages/web/components/patterns/HighlightView.tsx +++ b/packages/web/components/patterns/HighlightView.tsx @@ -33,7 +33,7 @@ export function HighlightView(props: HighlightViewProps): JSX.Element { } }}> {props.highlight.prefix} - + {lines.map((line: string, index: number) => ( {line} diff --git a/packages/web/components/patterns/LibraryCards/HighlightItemCard.tsx b/packages/web/components/patterns/LibraryCards/HighlightItemCard.tsx index d493d8fd6..b290a68dd 100644 --- a/packages/web/components/patterns/LibraryCards/HighlightItemCard.tsx +++ b/packages/web/components/patterns/LibraryCards/HighlightItemCard.tsx @@ -48,7 +48,7 @@ export function HighlightItemCard(props: HighlightItemCardProps): JSX.Element { >