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.

style: small fixes for cell shadows and hover (#7715)

Akshay Agrawal83a28ce53e69
diff --git a/frontend/src/components/editor/Output.tsx b/frontend/src/components/editor/Output.tsx
index d1657dc177..d2313564d4 100644
--- a/frontend/src/components/editor/Output.tsx
+++ b/frontend/src/components/editor/Output.tsx
@@ -404,14 +404,7 @@ OutputArea.displayName = "OutputArea";
const Div = React.forwardRef<
HTMLDivElement,
React.ComponentPropsWithoutRef<"div">
->((props, ref) => (
- <div
- ref={ref}
- {...props}
- // biome-ignore lint/a11y/noNoninteractiveTabindex: Needed to capture keypress events (similar to ConsoleOutput)
- tabIndex={0}
- />
-));
+>((props, ref) => <div ref={ref} {...props} />);
Div.displayName = "Div";
/**
@@ -512,8 +505,6 @@ const ExpandableOutput = React.memo(
style={
isExpanded || forceExpand ? { maxHeight: "none" } : undefined
}
- // biome-ignore lint/a11y/noNoninteractiveTabindex: Needed to capture keypress events (similar to ConsoleOutput)
- tabIndex={0}
>
{children}
</div>
diff --git a/frontend/src/css/app/Cell.css b/frontend/src/css/app/Cell.css
index 83aee00e8d..bcc89cd3eb 100644
--- a/frontend/src/css/app/Cell.css
+++ b/frontend/src/css/app/Cell.css
@@ -156,6 +156,10 @@
}
}
+ &.disabled:hover {
+ border-color: var(--gray-6);
+ }
+
/* Error styles for Cell, less precedence than needs run */
&.has-error:not(.needs-run),
&.error-outline {
@@ -285,6 +289,18 @@
.dark .marimo-cell {
@apply border-border;
+ &:hover {
+ border: 1px solid var(--gray-9);
+ }
+
+ &.needs-run:hover {
+ @apply border-action-foreground/30 outline-action-foreground/30;
+ }
+
+ &.has-error:hover {
+ @apply border-error/30 outline-error/30;
+ }
+
&.borderless {
border-color: transparent;