浏览代码

Fix Window high contrast mode - tag field

-edit background color for form input field-forced color mode
Desaiakshata 3 年之前
父节点
当前提交
22cdd89b68
共有 4 个文件被更改,包括 19 次插入2 次删除
  1. 1 1
      CHANGELOG.txt
  2. 1 0
      CONTRIBUTORS.rst
  3. 16 0
      client/scss/elements/_forms.scss
  4. 1 1
      docs/releases/2.15.rst

+ 1 - 1
CHANGELOG.txt

@@ -28,7 +28,7 @@ Changelog
  * Fix: Remove redundant 'clear' button from site root page chooser (Matt Westcott)
  * Fix: Make ModelAdmin IndexView keyboard-navigable (Saptak Sengupta)
  * Fix: Prevent error on refreshing page previews when multiple preview tabs are open (Alex Tomkins)
- * Fix: Multiple accessibility fixes for Windows high contrast mode; Admin fields, Icon visibility, Page Editor field panels, sidebar menu (Dmitrii Faiazov, Chakita Muttaraju, Onkar Apte, LB (Ben Johnston))
+ * Fix: Multiple accessibility fixes for Windows high contrast mode; Admin fields, Icon visibility, Page Editor field panels, sidebar menu (Dmitrii Faiazov, Chakita Muttaraju, Onkar Apte, Desai Akshata, LB (Ben Johnston))
  * Fix: `blocks.MultipleChoiceBlock`, `forms.CheckboxSelectMultiple` and `ArrayField` checkboxes will now stack instead of display inline to align with all other checkboxes fields (Seb Brown)
  * Fix: Screen readers can now access login screen field labels (Amy Chan)
  * Fix: Admin breadcrumbs home icon now shows for users with access to a subtree only (Stefan Hammer)

+ 1 - 0
CONTRIBUTORS.rst

@@ -535,6 +535,7 @@ Contributors
 * Jonathan "Yoni" Knoll
 * Onkar Apte
 * Justin Slay
+* Desai Akshata
 
 Translators
 ===========

+ 16 - 0
client/scss/elements/_forms.scss

@@ -128,6 +128,22 @@ select,
     }
 }
 
+@media (forced-colors: $media-forced-colours) {
+    .tagit,
+    .field-content .tagit .tagit-choice,
+    .tagit .tagit-new .ui-widget-content {
+        box-shadow: inset 1000px 0 0 0 $color-black;
+        color: $color-white;
+        forced-color-adjust: none;
+    }
+
+    .tagit span.tagit-label:before,
+    .tagit span.tagit-label {
+        color: $color-black;
+        forced-color-adjust: none;
+    }
+}
+
 // Reset the arrow on `<select>`s in IE10+.
 select::-ms-expand {
     display: none;

+ 1 - 1
docs/releases/2.15.rst

@@ -43,7 +43,7 @@ Bug fixes
  * Remove redundant 'clear' button from site root page chooser (Matt Westcott)
  * Make ModelAdmin IndexView keyboard-navigable (Saptak Sengupta)
  * Prevent error on refreshing page previews when multiple preview tabs are open (Alex Tomkins)
- * Multiple accessibility fixes for Windows high contrast mode; Admin fields, Icon visibility, Page Editor field panels, sidebar menu (Dmitrii Faiazov, Chakita Muttaraju, Onkar Apte, LB (Ben Johnston))
+ * Multiple accessibility fixes for Windows high contrast mode; Admin fields, Icon visibility, Page Editor field panels, sidebar menu (Dmitrii Faiazov, Chakita Muttaraju, Onkar Apte, Desai Akshata, LB (Ben Johnston))
  * ``blocks.MultipleChoiceBlock``, ``forms.CheckboxSelectMultiple`` and ``ArrayField`` checkboxes will now stack instead of display inline to align with all other checkboxes fields (Seb Brown)
  * Screen readers can now access login screen field labels (Amy Chan)
  * Admin breadcrumbs home icon now shows for users with access to a subtree only (Stefan Hammer)