Open krassowski opened 1 year ago
@Zxun2 if you want to work on this one, I would start by switching components from MaterialUI to the Jupyter toolkit when there is a replacement available (like tab panel, buttons, dialog, input,...). When replacing components, remove the associated CSS-in-JS class(es) and add well defined CSS class name(s) with as few rules as possible (mostly positioning rules as the toolkit should give you well integrated font and color rules).
Some notes on the toolkit:
@jupyter/react-components
to get the web components provided by the toolkit wrap in React components. The naming is generally straighforward. In the storybook, open the code snippet for a component. The react component name will be the web component name without the prefix jp-
and capitalize.(feel free to ping me for a final review to check for performance-related CSS issues)
jupyterlab-git uses:
This has performance implications because we get a lot of CSS rules of various quality.
typestyle is really a mixed bag:
I do not have a strong opinion on mui yet but I suspect there are limits to what it can do.
It would be good to consider some guidelines on what future code should use to minimise confusion and get the best performance (for example #1264 adds more typestyle).