mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 22:14:15 +02:00
Revise banner color and copy
This commit is contained in:
parent
02d147ae11
commit
0eac1db3ad
3 changed files with 8 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue