We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2a31ce + 20dc79a commit 02e8963Copy full SHA for 02e8963
packages/html-manager/src/libembed.ts
@@ -6,7 +6,16 @@ __webpack_public_path__ = (window as any).__jupyter_widgets_assets_path__ || __w
6
7
import 'font-awesome/css/font-awesome.css';
8
import '@lumino/widgets/style/index.css';
9
-import '@jupyter-widgets/controls/css/widgets.css';
+import '@jupyter-widgets/controls/css/widgets-base.css';
10
+
11
+// If lab variables are not found, we set them (we don't want to reset the variables if they are already defined)
12
+if (
13
+ getComputedStyle(document.documentElement).getPropertyValue(
14
+ '--jp-layout-color0'
15
+ ) === ''
16
+) {
17
+ require('@jupyter-widgets/controls/css/labvariables.css');
18
+}
19
20
// Used just for the typing. We must not import the javascript because we don't
21
// want to include it in the require embedding.
0 commit comments