Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Sidebar buttons are accessible now (#5672)

vincent d warmerdamfb0c19a8ec7e
diff --git a/frontend/src/components/editor/chrome/wrapper/sidebar.tsx b/frontend/src/components/editor/chrome/wrapper/sidebar.tsx
index 610099cfe3..055a9e4b78 100644
--- a/frontend/src/components/editor/chrome/wrapper/sidebar.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/sidebar.tsx
@@ -79,12 +79,12 @@ const SidebarItem: React.FC<
{
selected: boolean;
tooltip: React.ReactNode;
- } & React.HTMLAttributes<HTMLDivElement>
+ } & React.HTMLAttributes<HTMLButtonElement>
>
> = ({ children, tooltip, selected, className, ...rest }) => {
return (
<Tooltip content={tooltip} side="right" delayDuration={200}>
- <div
+ <button
className={cn(
"flex items-center p-2 text-sm mx-[1px] shadow-inset font-mono cursor-pointer rounded",
!selected && "hover:bg-[var(--sage-3)]",
@@ -94,7 +94,7 @@ const SidebarItem: React.FC<
{...rest}
>
{children}
- </div>
+ </button>
</Tooltip>
);
};