@pingux/astro 1.16.0-alpha.0 → 1.16.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/ArrayField/ArrayField.js +2 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +6 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +12 -0
- package/lib/components/ArrayField/ArrayField.js +2 -1
- package/lib/components/MultivaluesField/MultivaluesField.js +6 -1
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +12 -0
- package/package.json +1 -1
@@ -467,7 +467,12 @@ MultivaluesField.propTypes = {
|
|
467
467
|
/** Whether user input is required on the input before form submission. */
|
468
468
|
isRequired: _propTypes["default"].bool,
|
469
469
|
|
470
|
-
/** The list of items.
|
470
|
+
/** The list of items.
|
471
|
+
*
|
472
|
+
* **Note:** Every item needs to have key and name properties.
|
473
|
+
*
|
474
|
+
* `Array<{key: string, name: string}>`
|
475
|
+
*/
|
471
476
|
items: _isIterable.isIterableProp,
|
472
477
|
|
473
478
|
/** The rendered label for the field. */
|
@@ -72,6 +72,18 @@ var _default = {
|
|
72
72
|
source: {
|
73
73
|
type: 'code'
|
74
74
|
}
|
75
|
+
},
|
76
|
+
a11y: {
|
77
|
+
config: {
|
78
|
+
/** The "color-contrast" test ends with an "incomplete" status
|
79
|
+
* since pseudo-element applies to the same container as selected values.
|
80
|
+
* A workaround to disable "color-contrast" incomplete tests.
|
81
|
+
*/
|
82
|
+
rules: [{
|
83
|
+
id: 'color-contrast',
|
84
|
+
enabled: false
|
85
|
+
}]
|
86
|
+
}
|
75
87
|
}
|
76
88
|
}
|
77
89
|
};
|
@@ -422,7 +422,12 @@ MultivaluesField.propTypes = {
|
|
422
422
|
/** Whether user input is required on the input before form submission. */
|
423
423
|
isRequired: PropTypes.bool,
|
424
424
|
|
425
|
-
/** The list of items.
|
425
|
+
/** The list of items.
|
426
|
+
*
|
427
|
+
* **Note:** Every item needs to have key and name properties.
|
428
|
+
*
|
429
|
+
* `Array<{key: string, name: string}>`
|
430
|
+
*/
|
426
431
|
items: isIterableProp,
|
427
432
|
|
428
433
|
/** The rendered label for the field. */
|
@@ -45,6 +45,18 @@ export default {
|
|
45
45
|
source: {
|
46
46
|
type: 'code'
|
47
47
|
}
|
48
|
+
},
|
49
|
+
a11y: {
|
50
|
+
config: {
|
51
|
+
/** The "color-contrast" test ends with an "incomplete" status
|
52
|
+
* since pseudo-element applies to the same container as selected values.
|
53
|
+
* A workaround to disable "color-contrast" incomplete tests.
|
54
|
+
*/
|
55
|
+
rules: [{
|
56
|
+
id: 'color-contrast',
|
57
|
+
enabled: false
|
58
|
+
}]
|
59
|
+
}
|
48
60
|
}
|
49
61
|
}
|
50
62
|
};
|