Repository: nautobot/nautobot

Issue:
Disabled text input forms too dark after 2.1 reskin
<!--
    NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED.

    This form is only for reporting reproducible bugs. If you need assistance
    with Nautobot installation, or if you have a general question, please start a
    discussion instead: https://github.com/nautobot/nautobot/discussions

    Please describe the environment in which you are running Nautobot. Be sure
    that you are running an unmodified instance of the latest stable release
    before submitting a bug report, and that any plugins have been disabled.
-->
### Environment
* Nautobot version (Docker tag too if applicable): 2.1.0b1
* Python version:
* Database platform, version:
* Middleware(s):

<!--
    Describe in detail the exact steps that someone else can take to reproduce
    this bug using the current stable release of Nautobot. Begin with the
    creation of any necessary database objects and call out every operation
    being performed explicitly. If reporting a bug in the REST API, be sure to
    reconstruct the raw HTTP request(s) being made: Don't rely on a client
    library such as pynautobot.
-->
### Steps to Reproduce
1. Go to the jobs list view
2. Edit any job
3. Observe the disabled text input forms

<!-- What did you expect to happen? -->
### Expected Behavior

They look like disabled text input forms and don't clash with the color scheme

<!-- What happened instead? -->
### Observed Behavior

They're too dark, on dark mode they're the same color as the background.

![image](https://github.com/nautobot/nautobot/assets/75227981/d6d2a8c2-2e6e-4011-ad61-5d07bc1a1dd3)

![image](https://github.com/nautobot/nautobot/assets/75227981/48d47908-1ede-4c90-a9b8-236b33665426)



Discussion:

Resolving patch:
diff --git a/nautobot/core/templatetags/buttons.py b/nautobot/core/templatetags/buttons.py
--- a/nautobot/core/templatetags/buttons.py
+++ b/nautobot/core/templatetags/buttons.py
@@ -123,6 +123,7 @@ def export_button(context, content_type=None):
     else:
         export_templates = []
         export_url = None
+        include_yaml_option = False
 
     return {
         "export_url": export_url,
diff --git a/nautobot/core/urls.py b/nautobot/core/urls.py
--- a/nautobot/core/urls.py
+++ b/nautobot/core/urls.py
@@ -4,7 +4,14 @@
 from django.views.generic import TemplateView
 from django.views.static import serve
 
-from nautobot.core.views import CustomGraphQLView, HomeView, StaticMediaFailureView, SearchView, nautobot_metrics_view
+from nautobot.core.views import (
+    CustomGraphQLView,
+    HomeView,
+    StaticMediaFailureView,
+    SearchView,
+    ThemePreviewView,
+    nautobot_metrics_view,
+)
 from nautobot.extras.plugins.urls import (
     plugin_admin_patterns,
     plugin_patterns,
@@ -60,6 +67,7 @@
 
         urlpatterns += [
             path("__debug__/", include(debug_toolbar.urls)),
+            path("theme-preview/", ThemePreviewView.as_view(), name="theme_preview"),
         ]
     except ImportError:
         pass
diff --git a/nautobot/core/views/__init__.py b/nautobot/core/views/__init__.py
--- a/nautobot/core/views/__init__.py
+++ b/nautobot/core/views/__init__.py
@@ -6,7 +6,8 @@
 from django.apps import apps
 import prometheus_client
 from django.conf import settings
-from django.contrib.auth.mixins import AccessMixin
+from django.contrib.auth.mixins import AccessMixin, LoginRequiredMixin
+from django.contrib.contenttypes.models import ContentType
 from django.http import HttpResponseServerError, JsonResponse, HttpResponseForbidden, HttpResponse
 from django.shortcuts import redirect, render
 from django.template import loader, RequestContext, Template
@@ -26,7 +27,7 @@
 from nautobot.core.forms import SearchForm
 from nautobot.core.releases import get_latest_release
 from nautobot.core.utils.lookup import get_route_for_model
-from nautobot.extras.models import GraphQLQuery
+from nautobot.extras.models import GraphQLQuery, Status
 from nautobot.extras.registry import registry
 from nautobot.extras.forms import GraphQLQueryForm
 
@@ -109,6 +110,16 @@ def get(self, request, *args, **kwargs):
         return self.render_to_response(context)
 
 
+class ThemePreviewView(LoginRequiredMixin, TemplateView):
+    template_name = "utilities/theme_preview.html"
+
+    def get_context_data(self, **kwargs):
+        return {
+            "content_type": ContentType.objects.get_for_model(Status),
+            "object": Status.objects.first(),
+        }
+
+
 class SearchView(AccessMixin, View):
     def get(self, request):
         # if user is not authenticated, redirect to login page


Test patch: