From 8617cbdc70cb49e7d54936a13bd362c9bc93a362 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 28 Jun 2022 18:39:39 +0100 Subject: [PATCH] Update test over user css over widget css to show important widget css can be overridden by users too --- sandbox/darren/just_a_box.css | 2 +- tests/css/test_stylesheet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sandbox/darren/just_a_box.css b/sandbox/darren/just_a_box.css index 765fd5651..9182f42c7 100644 --- a/sandbox/darren/just_a_box.css +++ b/sandbox/darren/just_a_box.css @@ -2,5 +2,5 @@ height: 50%; width: 50%; align: center middle; - background: green; + background: blue; } diff --git a/tests/css/test_stylesheet.py b/tests/css/test_stylesheet.py index fd98e8904..b489298e6 100644 --- a/tests/css/test_stylesheet.py +++ b/tests/css/test_stylesheet.py @@ -108,7 +108,7 @@ def test_stylesheet_apply_user_css_over_widget_css(): user_css = ".a {color: red; tint: yellow;}" class MyWidget(Widget): - CSS = ".a {color: blue; background: lime;}" + CSS = ".a {color: blue !important; background: lime;}" node = MyWidget() node.add_class("a")