@canonical/react-components 2.2.2 → 2.2.4
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.
|
@@ -52,7 +52,9 @@ const generateHeaders = (currentSortKey, currentSortDirection, expanding, header
|
|
|
52
52
|
// account for the extra cell in the body rows.
|
|
53
53
|
return /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement(_TableRow.default, null, headerItems, expanding && /*#__PURE__*/_react.default.createElement(_TableHeader.default, {
|
|
54
54
|
"aria-hidden": "true"
|
|
55
|
-
}
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
56
|
+
className: "u-off-screen"
|
|
57
|
+
}, "Empty"))));
|
|
56
58
|
};
|
|
57
59
|
const generateRows = _ref2 => {
|
|
58
60
|
let {
|
|
@@ -75,6 +75,7 @@ const Slider = _ref => {
|
|
|
75
75
|
style: style,
|
|
76
76
|
type: "range"
|
|
77
77
|
}, inputProps)), showInput && /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
78
|
+
"aria-label": typeof label === "string" ? label : undefined,
|
|
78
79
|
"aria-describedby": help ? helpId : null,
|
|
79
80
|
"aria-errormessage": hasError ? validationId : null,
|
|
80
81
|
"aria-invalid": hasError,
|
|
@@ -49,7 +49,9 @@ var generateHeaders = (currentSortKey, currentSortDirection, expanding, headers,
|
|
|
49
49
|
// account for the extra cell in the body rows.
|
|
50
50
|
return /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(TableRow, null, headerItems, expanding && /*#__PURE__*/React.createElement(TableHeader, {
|
|
51
51
|
"aria-hidden": "true"
|
|
52
|
-
}
|
|
52
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
53
|
+
className: "u-off-screen"
|
|
54
|
+
}, "Empty"))));
|
|
53
55
|
};
|
|
54
56
|
var generateRows = _ref2 => {
|
|
55
57
|
var {
|
|
@@ -69,6 +69,7 @@ export var Slider = _ref => {
|
|
|
69
69
|
style: style,
|
|
70
70
|
type: "range"
|
|
71
71
|
}, inputProps)), showInput && /*#__PURE__*/React.createElement("input", _extends({
|
|
72
|
+
"aria-label": typeof label === "string" ? label : undefined,
|
|
72
73
|
"aria-describedby": help ? helpId : null,
|
|
73
74
|
"aria-errormessage": hasError ? validationId : null,
|
|
74
75
|
"aria-invalid": hasError,
|