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 HTML snippet is opened, when switching from light to dark theme, the browser background becomes dark and the text is not visible. By default, the text in HTML is always black if there are no styles.
When the page is refreshed, the background is light again.
I suggest to make it so that the browser background in HTML snippets does not change and is always white.
The error is reproduced only when opening from the light theme for the first time or after reloading from the light theme.
If you just switch from dark to light theme, there is no error.
The JS snippet handles it correctly, the background in the dark theme is always dark because it's a console and the font is automatically adjusted there.
01.07.2024.mp4
Reproduction steps
1. Authorize and the light theme must be enabled
2. Open an HTML snippet that contains the code
3. Switch the theme to dark
4. Click refresh page
Expected result
When switching to a dark theme, the browser background remains white
Actual result
When you switch to a dark theme, the browser background turns black
Browsers
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered:
KseniyaKerzhner
changed the title
Bug: Ошибка обработки цвета бэкграунда в браузере HTML снипета при смене темы
Bug: Error handling background color in HTML snippet browser when changing theme
Jul 8, 2024
Summary
When HTML snippet is opened, when switching from light to dark theme, the browser background becomes dark and the text is not visible. By default, the text in HTML is always black if there are no styles.
When the page is refreshed, the background is light again.
I suggest to make it so that the browser background in HTML snippets does not change and is always white.
The error is reproduced only when opening from the light theme for the first time or after reloading from the light theme.
If you just switch from dark to light theme, there is no error.
The JS snippet handles it correctly, the background in the dark theme is always dark because it's a console and the font is automatically adjusted there.
01.07.2024.mp4
Reproduction steps
Expected result
When switching to a dark theme, the browser background remains white
Actual result
When you switch to a dark theme, the browser background turns black
Browsers
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered: