You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at the interactive code block (maybe called "CodeMirror") sections in dark mode, there is a white square that doesn't seem to do anything. I could see this on Chrome, Firefox, and Safari.
There's a small chunk of CSS that sets this white square to be white:
.CodeMirror-scrollbar-filler,
.CodeMirror-gutter-filler {
background-color: white; /* The little square between H and V scrollbars */
}
On light mode, this makes the square invisible (because the background is also white). However, this CSS doesn't seem to account for dark mode.
My proposed fix is a little lazy. I'll just make the square invisible on dark mode:
.CodeMirror-scrollbar-filler:is(html[class~=dark] *) ,
.CodeMirror-gutter-filler:is(html[class~=dark] *) {
background-color: transparent; /* The little square between H and V scrollbars */
}
I think that a larger fix might be ideal in the future, because the scrollbars are invisible anyway, so this square doesn't seem to have any use (see: #1617). But maybe my proposed fix is OK in the meantime.
The text was updated successfully, but these errors were encountered:
Description
When looking at the interactive code block (maybe called "CodeMirror") sections in dark mode, there is a white square that doesn't seem to do anything. I could see this on Chrome, Firefox, and Safari.
Steps to Reproduce
Expected Result
I would expect not to see the white square.
Actual Result
...I saw the white square.
Additional Context
There's a small chunk of CSS that sets this white square to be white:
On light mode, this makes the square invisible (because the background is also white). However, this CSS doesn't seem to account for dark mode.
My proposed fix is a little lazy. I'll just make the square invisible on dark mode:
I think that a larger fix might be ideal in the future, because the scrollbars are invisible anyway, so this square doesn't seem to have any use (see: #1617). But maybe my proposed fix is OK in the meantime.
The text was updated successfully, but these errors were encountered: