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

feat: enhance toolbar dropdown item styling for better accessibility and visibility

Augustus Otude548085cbbb
diff --git a/apps/web/src/components/editor/Toolbar.tsx b/apps/web/src/components/editor/Toolbar.tsx
index 545b9d1d..92dae4be 100644
--- a/apps/web/src/components/editor/Toolbar.tsx
+++ b/apps/web/src/components/editor/Toolbar.tsx
@@ -871,7 +871,7 @@ export const Toolbar: React.FC = () => {
) : (
<DropdownMenuItem
key={option.type + index}
- className={`flex items-center gap-3 p-3 rounded-lg cursor-pointer ${
+ className={`flex items-center gap-3 p-3 rounded-lg cursor-pointer hover:bg-hover focus:bg-hover ${
option.recommended ? "bg-accent-soft" : ""
}`}
onClick={() => handleExport(option.type)}
@@ -913,7 +913,7 @@ export const Toolbar: React.FC = () => {
<DropdownMenuSeparator />
<DropdownMenuItem
- className="flex items-center gap-3 p-3 rounded-lg cursor-pointer"
+ className="flex items-center gap-3 p-3 rounded-lg cursor-pointer hover:bg-hover focus:bg-hover"
onClick={() => setIsExportDialogOpen(true)}
>
<div className="p-2 bg-accent-soft rounded-lg text-accent">
diff --git a/apps/web/tailwind.config.js b/apps/web/tailwind.config.js
index ca808aae..e88d50d5 100644
--- a/apps/web/tailwind.config.js
+++ b/apps/web/tailwind.config.js
@@ -38,6 +38,11 @@ export default {
strong: "var(--accent-strong)",
soft: "var(--accent-soft)",
fg: "var(--accent-fg)",
+ // shadcn primitives (Select/DropdownMenu/ContextMenu/Button) hover
+ // with `bg-accent text-accent-foreground`; without this mapping the
+ // text color resolved to nothing and disappeared on the emerald
+ // hover background. Maps to the on-accent text token.
+ foreground: "var(--accent-fg)",
glow: "var(--accent-glow)",
},
clip: {