File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/html-manager/src Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,16 @@ __webpack_public_path__ = (window as any).__jupyter_widgets_assets_path__ || __w
6
6
7
7
import 'font-awesome/css/font-awesome.css' ;
8
8
import '@lumino/widgets/style/index.css' ;
9
- import '@jupyter-widgets/controls/css/widgets.css' ;
9
+ 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
+ }
10
19
11
20
// Used just for the typing. We must not import the javascript because we don't
12
21
// want to include it in the require embedding.
You can’t perform that action at this time.
0 commit comments