Revise banner color and copy

This commit is contained in:
Rachid Mrad 2024-02-07 11:00:21 -05:00
parent 02d147ae11
commit 0eac1db3ad
No known key found for this signature in database
3 changed files with 8 additions and 4 deletions

View file

@ -116,6 +116,10 @@ in the form $setting: value,
$theme-color-success-light: $dhs-green-30, $theme-color-success-light: $dhs-green-30,
$theme-color-success-lighter: $dhs-green-15, $theme-color-success-lighter: $dhs-green-15,
/*---------------------------
## Emergency state
----------------------------*/
$theme-color-emergency: #FFC3F9,
/*--------------------------- /*---------------------------
# Input settings # Input settings

View file

@ -1,5 +1,5 @@
<div class="usa-alert usa-alert--warning usa-alert--slim margin-y-0 {% if add_class %}{{ add_class }}{% endif %}"> <div class="usa-alert usa-alert--emergency margin-y-0 {% if add_class %}{{ add_class }}{% endif %}">
<div class="usa-alert__body {% if add_body_class %}{{ add_body_class }}{% endif %}"> <div class="usa-alert__body {% if add_body_class %}{{ add_body_class }}{% endif %}">
<b>WARNING:</b> You are not on production. <b>WARNING:</b> You are on a test site.
</div> </div>
</div> </div>

View file

@ -22,10 +22,10 @@ class MyTestCase(TestCase):
def test_production_environment(self): def test_production_environment(self):
"""No banner on prod.""" """No banner on prod."""
home_page = self.client.get("/") home_page = self.client.get("/")
self.assertNotContains(home_page, "You are not on production.") self.assertNotContains(home_page, "You are on a test site.")
@override_settings(IS_PRODUCTION=False) @override_settings(IS_PRODUCTION=False)
def test_non_production_environment(self): def test_non_production_environment(self):
"""Banner on non-prod.""" """Banner on non-prod."""
home_page = self.client.get("/") home_page = self.client.get("/")
self.assertContains(home_page, "You are not on production.") self.assertContains(home_page, "You are on a test site.")