Browse Source

Allow all CSS system colors in stylesheets without variables usage (#8945)

Thibaud Colas 2 years ago
parent
commit
4f94c9ea20
2 changed files with 20 additions and 1 deletions
  1. 19 1
      .stylelintrc.js
  2. 1 0
      CHANGELOG.txt

+ 19 - 1
.stylelintrc.js

@@ -54,9 +54,27 @@ module.exports = {
           'none',
           'unset',
           'transparent',
+          // System colors for forced-colors styling.
+          // See https://drafts.csswg.org/css-color-4/#css-system-colors.
+          'Canvas',
+          'CanvasText',
+          'LinkText',
+          'VisitedText',
           'ActiveText',
-          'Highlight',
+          'ButtonFace',
           'ButtonText',
+          'ButtonBorder',
+          'Field',
+          'FieldText',
+          'Highlight',
+          'HighlightText',
+          'SelectedItem',
+          'SelectedItemText',
+          'Mark',
+          'MarkText',
+          'GrayText',
+          'AccentColor',
+          'AccentColorText',
         ],
       },
     ],

+ 1 - 0
CHANGELOG.txt

@@ -125,6 +125,7 @@ Changelog
  * Fix: Avoid 503 `AttributeError` when an empty search param `q=` is combined with other filters in the Images index view (Paritosh Kabra)
  * Fix: Fix error with string representation of FormSubmission not returning a string (LB (Ben) Johnston)
  * Fix: Ensure disabled buttons are distinguishable from active buttons in forced colors mode (Anuja Verma)
+ * Include all CSS system colors in allowed values in Stylelint's declaration-strict-value rule
 
 
 3.0.1 (16.06.2022)