From 7ee190b9adbc87d3acac62da5b992493ce72dfb1 Mon Sep 17 00:00:00 2001
From: TomJGooding <101601846+TomJGooding@users.noreply.github.com>
Date: Fri, 17 Jan 2025 21:36:22 +0000
Subject: [PATCH] fix(datatable): simplify default css

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 #5481).
---
 src/textual/widgets/_data_table.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/textual/widgets/_data_table.py b/src/textual/widgets/_data_table.py
index d792c81d55..3ac7779fbd 100644
--- a/src/textual/widgets/_data_table.py
+++ b/src/textual/widgets/_data_table.py
@@ -343,7 +343,6 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
         }
 
         &:dark {
-            background: $surface;
             & > .datatable--even-row {
                 background: $surface-darken-1 40%;
             }