Skip to content

Thebe loads CSS that clobbers in-page CSS #464

@choldgraf

Description

@choldgraf

Describe the problem

When thebe is loaded, it now loads CSS that clobbers a ton of in-page CSS. For example, see the word "example" in the thebe docs here:

https://thebe.readthedocs.io/en/latest/#examples

image

In this case, all of the paragraph styling and the styling of the second instance of "examples" is gone.

If you look at the CSS that corresponds to those elements, we are loading a base.css file a bunch of times, that is coming from the JupyterLab UI components:

image

So it seems like we are loading some JupyterLab CSS that is clobbering the other CSS on the page. We should restrict this to thebe-activated code cells somehow.

Link to your repository or website

https://thebe.readthedocs.io/en/latest/#examples

Steps to reproduce

  • Load the latest thebe on any page with paragraph-level formatting
  • Note that the formatting is clobbered

The version of Python you're using

No response

Your operating system

No response

Versions of your packages

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

blockerProblems that should block a release or be fixed quicklybug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions