Update test over user css over widget css to show important widget css can be overridden by users too

This commit is contained in:
Darren Burns
2022-06-28 18:39:39 +01:00
parent 972aeece64
commit 8617cbdc70
2 changed files with 2 additions and 2 deletions

View File

@@ -2,5 +2,5 @@
height: 50%;
width: 50%;
align: center middle;
background: green;
background: blue;
}

View File

@@ -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")