Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript

fix: address final code review - add clarifying comment and fix aria-hidden

copilot-swe-agent[bot]7a216f9f35cc
diff --git a/apps/web/src/components/editor/Preview.tsx b/apps/web/src/components/editor/Preview.tsx
index 5fa02dc2..f6f878e2 100644
--- a/apps/web/src/components/editor/Preview.tsx
+++ b/apps/web/src/components/editor/Preview.tsx
@@ -3833,6 +3833,7 @@ export const Preview: React.FC = () => {
const [hoveredGraphicClipId, setHoveredGraphicClipId] = useState<string | null>(null);
const activeGraphicClips = useMemo(() => {
+ // getActiveShapeClips returns all graphic clip types (shapes, SVGs, and stickers)
return getActiveShapeClips(allShapeClips, playheadPosition);
}, [allShapeClips, playheadPosition]);
@@ -5175,8 +5176,7 @@ export const Preview: React.FC = () => {
>
<div className="absolute inset-0 border-2 border-dashed border-white/80 rounded-sm" />
<div
- role="tooltip"
- aria-label="Click to select this graphic"
+ aria-hidden="true"
className="absolute -top-6 left-1/2 -translate-x-1/2 px-2 py-0.5 bg-black/70 rounded text-[10px] text-white whitespace-nowrap"
>
Click to select