diff --git a/frappe/print/doctype/print_format/test_print_format.py b/frappe/print/doctype/print_format/test_print_format.py index aa8c79200d..2ce113543c 100644 --- a/frappe/print/doctype/print_format/test_print_format.py +++ b/frappe/print/doctype/print_format/test_print_format.py @@ -23,7 +23,7 @@ class TestPrintFormat(unittest.TestCase): def test_print_user_modern(self): print_html = self.test_print_user("Modern") - self.assertTrue(re.findall('th {[\s]*background-color: #eee;[\s]*}', print_html)) + self.assertTrue(re.findall('th {[\s]*background-color: #eee !important;[\s]*}', print_html)) def test_print_user_classic(self): print_html = self.test_print_user("Classic") diff --git a/frappe/templates/styles/modern.css b/frappe/templates/styles/modern.css index b2c0381f41..5e65b7c0e3 100644 --- a/frappe/templates/styles/modern.css +++ b/frappe/templates/styles/modern.css @@ -13,5 +13,5 @@ } .print-format th { - background-color: #eee; + background-color: #eee !important; }