@ukhomeoffice/cop-react-form-renderer 7.1.1-ipm-accessibility-gamma → 7.1.1-ipm-accessibility-delta
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/dist/components/CollectionSummary/RenderListView.js +1 -0
- package/dist/components/CollectionSummary/SummaryCardDetails.js +3 -0
- package/dist/components/SummaryList/SummaryList.js +1 -0
- package/dist/components/SummaryList/SummaryListHeadingRow.js +1 -0
- package/dist/components/SummaryList/SummaryListHeadingRowWithAction.js +1 -0
- package/dist/components/SummaryList/SummaryListRow.js +1 -0
- package/dist/components/SummaryList/SummaryListTitleRow.js +1 -0
- package/package.json +1 -1
|
@@ -100,6 +100,7 @@ const RenderListView = _ref => {
|
|
|
100
100
|
className: classes('content'),
|
|
101
101
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("dl", {
|
|
102
102
|
className: listClass(),
|
|
103
|
+
role: "list",
|
|
103
104
|
children: masterPage === null || masterPage === void 0 || (_masterPage$childPage = masterPage.childPages) === null || _masterPage$childPage === void 0 ? void 0 : _masterPage$childPage.flatMap(childPage => {
|
|
104
105
|
var _childPage$summaryLay;
|
|
105
106
|
const elevatedComponents = childPage.components.map(component => _utils.default.Component.elevateNested([component], entryData)).flat().filter(Boolean);
|
|
@@ -61,6 +61,7 @@ const SummaryCardDetails = _ref => {
|
|
|
61
61
|
'--column': columnIndex + 1,
|
|
62
62
|
'--row': rowIndex
|
|
63
63
|
},
|
|
64
|
+
role: "list",
|
|
64
65
|
children: containerRows.map(subComponent => {
|
|
65
66
|
var _entryData$component$;
|
|
66
67
|
// Put value for current subcomponent at top level
|
|
@@ -85,6 +86,7 @@ const SummaryCardDetails = _ref => {
|
|
|
85
86
|
'--column': columnIndex + 1,
|
|
86
87
|
'--row': rowIndex
|
|
87
88
|
},
|
|
89
|
+
role: "list",
|
|
88
90
|
children: collectionRows.map(subComponent => {
|
|
89
91
|
var _entryData$component$2;
|
|
90
92
|
// Put value for current subComponent at the top level
|
|
@@ -117,6 +119,7 @@ const SummaryCardDetails = _ref => {
|
|
|
117
119
|
'--column': columnIndex + 1,
|
|
118
120
|
'--row': rowIndex
|
|
119
121
|
},
|
|
122
|
+
role: "list",
|
|
120
123
|
children: (0, _getSummaryListRowForDetails.default)(childPage, component, classes, entryData, optionalFieldPlaceholder)
|
|
121
124
|
}, fieldId);
|
|
122
125
|
});
|
|
@@ -49,6 +49,7 @@ const SummaryList = _ref => {
|
|
|
49
49
|
className: "group-of-rows",
|
|
50
50
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("dl", _objectSpread(_objectSpread({}, cleanedHtmlAttrs), {}, {
|
|
51
51
|
className: classes(),
|
|
52
|
+
role: "list",
|
|
52
53
|
children: [rows.map(row => {
|
|
53
54
|
const key = "".concat(row.pageId, "_").concat(row.full_path || row.fieldId);
|
|
54
55
|
if (row.type === 'title') {
|
|
@@ -19,6 +19,7 @@ const SummaryListHeadingRow = _ref => {
|
|
|
19
19
|
} = _ref;
|
|
20
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21
21
|
className: "".concat(classes('heading')),
|
|
22
|
+
role: "listitem",
|
|
22
23
|
children: [size === 's' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_copReactComponents.SmallHeading, {
|
|
23
24
|
children: title
|
|
24
25
|
}), size === 'm' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_copReactComponents.MediumHeading, {
|
|
@@ -25,6 +25,7 @@ const SummaryListHeadingRowWithAction = _ref => {
|
|
|
25
25
|
} = _ref;
|
|
26
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
27
|
className: classes('headingWithAction'),
|
|
28
|
+
role: "listitem",
|
|
28
29
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("td", {
|
|
29
30
|
className: "heading-text",
|
|
30
31
|
colSpan: "2",
|
|
@@ -21,6 +21,7 @@ const SummaryListRow = _ref => {
|
|
|
21
21
|
} = _ref;
|
|
22
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23
23
|
className: classes('row'),
|
|
24
|
+
role: "listitem",
|
|
24
25
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("dt", {
|
|
25
26
|
className: classes('key'),
|
|
26
27
|
children: [row.key, !row.required && " (optional)"]
|
|
@@ -18,6 +18,7 @@ const SummaryListTitleRow = _ref => {
|
|
|
18
18
|
} = _ref;
|
|
19
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20
20
|
className: "".concat(classes('row'), " ").concat(classes('title')),
|
|
21
|
+
role: "listitem",
|
|
21
22
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_copReactComponents.SmallHeading, {
|
|
22
23
|
children: title
|
|
23
24
|
})
|