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
I understand that widget CSS is sometimes necessarily complex, especially now with themes, but perhaps there's a way to make changing the CSS more intuitive?
The text was updated successfully, but these errors were encountered:
Remove the background CSS in the `:dark` pseudo selector, as this is
already the default background for the `DataTable`.
Currently this duplication makes styling a custom widget that extends
the `DataTable` unintuitive (see Textualize#5481).
I've sometimes found updating the CSS for custom widgets to be unintuitive, especially with the introduction of themes.
Here's a simple example with a custom widget that extends the
DataTable
. I think you would expect the background to be red.But you'd need to dig into the source code and understand that you also need to change this:
I understand that widget CSS is sometimes necessarily complex, especially now with themes, but perhaps there's a way to make changing the CSS more intuitive?
The text was updated successfully, but these errors were encountered: