Skip to content

Incorrect "show/hide code cell output" background in dark mode #523

@bbye98

Description

@bbye98

Describe the bug

context
When dark mode is toggled, the "show/hide code cell output" button's text is updated to a light color, but the background stays light, making the text nearly impossible to see.

expectation
The "show/hide code cell output" text should turn light while the background should turn dark.

bug
But instead the background stays the same color.

problem
The "show/hide code cell output" text is now impossible to see on top of the light background. Furthermore, the light background of the "show/hide code cell output" strip severely contrasts against the overall dark background.

Reproduce the bug

I noticed this issue when building the documentation for my personal project. Here's a rendered version clearly showing the issue: https://bbye98.github.io/minim/guides/qobuz.html

List your environment

❯ conda -V
conda 23.5.0

❯ python3 -V
Python 3.9.16

❯ conda list myst-nb
# packages in environment at /home/bye/miniconda3/envs/minim:
#
# Name                    Version                   Build  Channel
myst-nb                   0.17.2             pyhd8ed1ab_0    conda-forge

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions