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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Fix plotly hover text rendering issue (#10988)
Martha Cryan1e9f4200f902
diff --git a/frontend/e2e-tests/accessibility.spec.ts b/frontend/e2e-tests/accessibility.spec.tsindex fa5a971101..903a28adef 100644--- a/frontend/e2e-tests/accessibility.spec.ts+++ b/frontend/e2e-tests/accessibility.spec.ts@@ -57,9 +57,9 @@ test("reduces motion in the marimo namespace", async ({ page }) => {expect(cssTimeToMilliseconds(styles.animationDuration)).toBeLessThanOrEqual(0.01,);- expect(cssTimeToMilliseconds(styles.transitionDuration)).toBeLessThanOrEqual(- 0.01,- );+ // Exactly 0: a non-zero duration would give every element an implicit+ // `transition: all`, breaking libraries that measure synchronously (#10949).+ expect(cssTimeToMilliseconds(styles.transitionDuration)).toBe(0);expect(cssTimeToMilliseconds(styles.animationDelay)).toBe(0);expect(cssTimeToMilliseconds(styles.transitionDelay)).toBe(0);expect(styles.animationIterationCount).toBe("1");diff --git a/frontend/src/css/globals.css b/frontend/src/css/globals.cssindex c8c237f882..26ac3abb5f 100644--- a/frontend/src/css/globals.css+++ b/frontend/src/css/globals.css@@ -55,29 +55,21 @@--background: light-dark(hsl(0deg 0% 100%), hsl(150deg 7.7% 10.2%));--foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(155deg 7% 93%));--muted: light-dark(hsl(210deg 40% 96.1%), hsl(180deg 14% 1%));- --muted-foreground: light-dark(- hsl(215.4deg 16.3% 46.9%),- hsl(155deg 5% 68.3%)- );+ --muted-foreground: light-dark(hsl(215.4deg 16.3% 46.9%),+ hsl(155deg 5% 68.3%));--popover: light-dark(hsl(0deg 0% 100%), hsl(151deg 5.5% 15.2%));- --popover-foreground: light-dark(- hsl(222.2deg 47.4% 11.2%),- hsl(155deg 5% 68.3%)- );+ --popover-foreground: light-dark(hsl(222.2deg 47.4% 11.2%),+ hsl(155deg 5% 68.3%));--card: light-dark(hsl(0deg 0% 100%), hsl(151deg 5.5% 15.2%));- --card-foreground: light-dark(- hsl(222.2deg 47.4% 11.2%),- hsl(155deg 5% 76.3%)- );+ --card-foreground: light-dark(hsl(222.2deg 47.4% 11.2%),+ hsl(155deg 5% 76.3%));--border: light-dark(hsl(214.3deg 31.8% 91.4%), hsl(153deg 3.7% 24.2%));--input: light-dark(hsl(0deg 0% 64%), hsl(154deg 3.3% 28.7%));--primary: light-dark(hsl(208deg 93.5% 47.4%), hsl(192deg 59.8% 39%));--primary-foreground: light-dark(hsl(210deg 40% 98%), hsl(190deg 80% 84%));--secondary: light-dark(hsl(210deg 40% 96.1%), hsl(155deg 7% 93%));- --secondary-foreground: light-dark(- hsl(222.2deg 47.4% 11.2%),- hsl(151deg 5.5% 15.2%)- );+ --secondary-foreground: light-dark(hsl(222.2deg 47.4% 11.2%),+ hsl(151deg 5.5% 15.2%));--accent: light-dark(hsl(209deg 100% 96.5%), hsl(192deg 56.6% 26.5%));--accent-foreground: light-dark(hsl(211deg 90% 42%), hsl(190deg 80% 84%));--ring: hsl(215deg 20.2% 65.1%);@@ -105,10 +97,8 @@/* Base shadows. */--base-shadow: light-dark(hsl(0deg 0% 85% / 40%), hsla(0deg 0% 36% / 60%));- --base-shadow-darker: light-dark(- hsl(0deg 0% 50% / 40%),- hsl(0deg 0% 50% / 60%)- );+ --base-shadow-darker: light-dark(hsl(0deg 0% 50% / 40%),+ hsl(0deg 0% 50% / 60%));--base-shadow-opacity: 5%;/* Codemirror editor */@@ -162,7 +152,14 @@animation-duration: 0.01ms !important;animation-delay: 0s !important;animation-iteration-count: 1 !important;- transition-duration: 0.01ms !important;++ /*+ Set to 0s, because `transition-property` defaults to `all`, so any non-zero+ duration gives every element a transition. Libraries that change an+ attribute and measure synchronously (e.g. Plotly hover labels) would read+ stale geometry.+ */+ transition-duration: 0s !important;transition-delay: 0s !important;}