diff --git a/ops/manifests/manifest-stable.yaml b/ops/manifests/manifest-stable.yaml index e7b3c74ae..d8502c625 100644 --- a/ops/manifests/manifest-stable.yaml +++ b/ops/manifests/manifest-stable.yaml @@ -25,6 +25,8 @@ applications: GETGOV_PUBLIC_SITE_URL: https://beta.get.gov # Which OIDC provider to use OIDC_ACTIVE_PROVIDER: login.gov production + # Flag to disable/enable features in prod environments + IS_PRODUCTION: True routes: - route: getgov-stable.app.cloud.gov services: diff --git a/src/registrar/assets/sass/_theme/_buttons.scss b/src/registrar/assets/sass/_theme/_buttons.scss index cb2117fb9..02089ec6d 100644 --- a/src/registrar/assets/sass/_theme/_buttons.scss +++ b/src/registrar/assets/sass/_theme/_buttons.scss @@ -26,6 +26,24 @@ a.usa-button { text-decoration: none; } +a.usa-button.disabled-link { + background-color: #ccc !important; + color: #454545 !important +} + +a.usa-button.disabled-link:hover { + background-color: #ccc !important; + cursor: not-allowed !important; + color: #454545 !important +} + +a.usa-button.disabled-link:focus { + background-color: #ccc !important; + cursor: not-allowed !important; + outline: none !important; + color: #454545 !important +} + a.usa-button:not(.usa-button--unstyled, .usa-button--outline) { color: color('white'); } diff --git a/src/registrar/assets/sass/_theme/_uswds-theme.scss b/src/registrar/assets/sass/_theme/_uswds-theme.scss index ba076d845..0cdf6675e 100644 --- a/src/registrar/assets/sass/_theme/_uswds-theme.scss +++ b/src/registrar/assets/sass/_theme/_uswds-theme.scss @@ -132,4 +132,10 @@ in the form $setting: value, $theme-table-sorted-background-color: "accent-cool-lightest", $theme-table-sorted-icon-color: "primary-darker", $theme-table-unsorted-icon-color: "primary", + + /*---------------------------- + # Tooltip Settings + -----------------------------*/ + $theme-tooltip-background-color: "accent-cool-lightest", + $theme-tooltip-font-color: "black" ); diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py index 896691efb..87ad0ff96 100644 --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -46,6 +46,7 @@ path = Path(__file__) env_db_url = env.dj_db_url("DATABASE_URL") env_debug = env.bool("DJANGO_DEBUG", default=False) +env_is_production = env.bool("IS_PRODUCTION", default=False) env_log_level = env.str("DJANGO_LOG_LEVEL", "DEBUG") env_base_url = env.str("DJANGO_BASE_URL") env_getgov_public_site_url = env.str("GETGOV_PUBLIC_SITE_URL", "") @@ -73,6 +74,8 @@ BASE_DIR = path.resolve().parent.parent.parent # SECURITY WARNING: don't run with debug turned on in production! DEBUG = env_debug +# Controls production specific feature toggles +IS_PRODUCTION = env_is_production # Applications are modular pieces of code. # They are provided by Django, by third-parties, or by yourself. diff --git a/src/registrar/management/commands/generate_test_transition_domains.py b/src/registrar/management/commands/generate_test_transition_domains.py index 20aba2c58..2865937de 100644 --- a/src/registrar/management/commands/generate_test_transition_domains.py +++ b/src/registrar/management/commands/generate_test_transition_domains.py @@ -15,7 +15,7 @@ class Command(BaseCommand): # Running this script removes all existing transition domains, so use with caution. # Transition domains are created with email addresses provided as command line # argument. Email addresses for testing are passed as comma delimited list of - # email addresses, and are required to be provided. Email addresses from the list + # email addresses, and are required to be provided. Email addresses from the list # are assigned to transition domains at time of creation. def add_arguments(self, parser): diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html index e86c08c70..1605499e2 100644 --- a/src/registrar/templates/home.html +++ b/src/registrar/templates/home.html @@ -13,9 +13,22 @@
- + {% if is_production %} + Start a new domain request + {% else %} + + Start a new domain request + + {% endif %}