From 9f65821fcea59f80f02cb9c62c600017e0436d3f Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Tue, 21 Nov 2023 19:34:42 +0100 Subject: [PATCH] mediagrid focus styles --- src/components/media/MediaCard.tsx | 7 +++++-- src/components/utils/Flare.tsx | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/components/media/MediaCard.tsx b/src/components/media/MediaCard.tsx index 1277abf8..2664651c 100644 --- a/src/components/media/MediaCard.tsx +++ b/src/components/media/MediaCard.tsx @@ -42,9 +42,11 @@ function MediaCardContent({ return ( e.key === "Enter" && e.currentTarget.click()} > {props.children}; +function Base(props: { + className?: string; + children?: ReactNode; + tabIndex?: number; + onKeyUp?: (e: React.KeyboardEvent) => void; +}) { + return ( +
+ {props.children} +
+ ); } function Child(props: { className?: string; children?: ReactNode }) {