-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
context
When adding a output to a ipywidgets widget, e.g. a <table class=table>…</table>
to a VBox
, the resulting style partially ignores dark mode.
![]() |
![]() |
expectation
I expected tables and ipywidget UI to be dark-mode aware.
I expect CSS for cell output to never use hardcoded colors, but always CSS variables.
bug
But instead light-on-dark elements appear in the cell output
problem
This is a problem because it’s ugly and every second line is unreadable.
Reproduce the bug
Which results in this HTML: https://session-info2.readthedocs.io/en/latest/
Specifically this applies:
div.cell_output tbody tr:nth-child(odd) {
background: #f5f5f5;
}
Please never use hardcoded colors in CSS, only variables
List your environment
- Python 3.12
- myst-nb 1.1.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working