Prechádzať zdrojové kódy

[UI]: Changed class from warning to failure for confirm delete message

Ensure the contrast of the message is suitable
Fixes #12232
sanjeevholla26 6 mesiacov pred
rodič
commit
aa3be4b888

+ 1 - 0
CHANGELOG.txt

@@ -22,6 +22,7 @@ Changelog
  * Fix: Fix broken link to user search (Shlomo Markowitz)
  * Fix: Ensure that JS slugify function strips Unicode characters disallowed by Django slug validation (Atif Khan)
  * Fix: Do not show notices about root / unroutable pages when searching or filtering in the page explorer (Matt Westcott)
+ * Fix: Resolve contrast issue for page deletion warning (Sanjeev Holla S)
  * Docs: Upgrade Sphinx to 7.3 (Matt Westcott)
  * Docs: Document how to customize date/time format settings (Vince Salvino)
  * Docs: Create a new documentation section for deployment and move fly.io deployment from the tutorial to this section (Vince Salvino)

+ 1 - 0
CONTRIBUTORS.md

@@ -832,6 +832,7 @@
 * Nayanshi Singh
 * Daniel Black
 * Atif Khan
+* Sanjeev Holla S
 
 ## Translators
 

+ 1 - 0
docs/releases/6.3.md

@@ -37,6 +37,7 @@ This release adds formal support for Django 5.1.
  * Fix broken link to user search (Shlomo Markowitz)
  * Ensure that JS slugify function strips Unicode characters disallowed by Django slug validation (Atif Khan)
  * Do not show notices about root / unroutable pages when searching or filtering in the page explorer (Matt Westcott)
+ * Resolve contrast issue for page deletion warning (Sanjeev Holla S)
 
 ### Documentation
 

+ 1 - 1
wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html

@@ -70,7 +70,7 @@
             <form action="{% url 'wagtailadmin_pages:delete' page.id %}" method="POST">
                 {% csrf_token %}
                 {% if confirm_before_delete %}
-                    <p id="id_confirm_site_name-warning" class="status-msg warning">
+                    <p id="id_confirm_site_name-warning" class="status-msg failure">
                         {% blocktrans trimmed with total_pages=descendant_count|add:1|intcomma %}
                             This action will delete total <b>{{ total_pages }}</b> pages.
                         {% endblocktrans %}