Skip to content

Commit

Permalink
fix(datatable): simplify default css
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
TomJGooding committed Jan 17, 2025
1 parent dc71564 commit 7ee190b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/textual/widgets/_data_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
}
&:dark {
background: $surface;
& > .datatable--even-row {
background: $surface-darken-1 40%;
}
Expand Down

0 comments on commit 7ee190b

Please sign in to comment.