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.

improve: stale indicator precedence over error (#4321)

Akshay Agrawal9a64b648c92b
diff --git a/frontend/src/css/app/Cell.css b/frontend/src/css/app/Cell.css
index ee38eb35db..867837c443 100644
--- a/frontend/src/css/app/Cell.css
+++ b/frontend/src/css/app/Cell.css
@@ -118,8 +118,32 @@
}
}
+ /* Error styles for Cell, less precedence than needs run */
+ &.has-error,
+ &.error-outline {
+ outline: 1px solid var(--red-4);
+ @apply shadow-mdSolid shadow-[var(--red-8)];
+ }
+
+ &.has-error:hover {
+ @apply shadow-lgSolid shadow-[var(--red-8)];
+ }
+
+ &.has-error:focus-within,
+ &.has-error:focus-within:hover {
+ @apply shadow-xlSolid shadow-[var(--red-8)];
+ }
+
+ &.error-outline,
+ &.error-outline:focus-within {
+ box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--error), transparent 80%);
+ background-color: var(--red-2);
+ }
+
/* Needs Run */
&.needs-run {
+ /* TODO(akshayka): Can give this an outline to make more visible. */
+ outline: none;
@apply divide-stale shadow-mdSolid shadow-stale;
&:hover {
@@ -141,28 +165,6 @@
}
}
- /* Error styles for Cell */
- &.has-error,
- &.error-outline {
- outline: 1px solid var(--red-4);
- @apply shadow-mdSolid shadow-[var(--red-8)];
- }
-
- &.has-error:hover {
- @apply shadow-lgSolid shadow-[var(--red-8)];
- }
-
- &.has-error:focus-within,
- &.has-error:focus-within:hover {
- @apply shadow-xlSolid shadow-[var(--red-8)];
- }
-
- &.error-outline,
- &.error-outline:focus-within {
- box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--error), transparent 80%);
- background-color: var(--red-2);
- }
-
/* Focus state */
&.focus-outline {
transition: all 0.6s;