-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS does not refresh for non-active
screens when CSS File is changed
#3931
Comments
Let's say the css file is this: Label {
color: yellow;
}
Label:hover {
color: red;
} Then if the color is changed from |
Note: temperory fix until Textualize/textual#3931 gets fixed
If I override the async def _on_css_change(self) -> None:
await super()._on_css_change()
self.refresh_css() |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Yes
If
watch_css
is turned on and the CSS file is changed, only the current screen's CSS is refreshed, the non-active screen widgets refresh after the top screen is popped from the stack and there's some activity on the widget such as:hover
It will be helpful if you run the following command and paste the results:
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
Feel free to add screenshots and / or videos. These can be very helpful!
The text was updated successfully, but these errors were encountered: