@thecb/components 5.5.0 → 5.6.0

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/index.cjs.js CHANGED
@@ -12171,6 +12171,11 @@ var ReelStyled = styled__default.div.withConfig({
12171
12171
  });
12172
12172
 
12173
12173
  var _excluded$g = ["childGap", "height", "childWidth", "padding", "justifyContent", "disableScroll", "useOrderedList", "useUnorderedList", "children"];
12174
+ /*
12175
+ Safari has a bug where it refuses to recognize <ul /> tags as lists when list-style: none is used
12176
+ This affects the apple voice over (mainly used on iOS devices)
12177
+ The solution is to explicitly include "role=List"
12178
+ */
12174
12179
 
12175
12180
  var Reel = function Reel(_ref) {
12176
12181
  var _ref$childGap = _ref.childGap,
@@ -12203,7 +12208,9 @@ var Reel = function Reel(_ref) {
12203
12208
  as: elementType,
12204
12209
  useOrderedList: useOrderedList,
12205
12210
  useUnorderedList: useUnorderedList
12206
- }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
12211
+ }, rest, {
12212
+ role: useOrderedList || useUnorderedList ? "list" : "section"
12213
+ }), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
12207
12214
  };
12208
12215
 
12209
12216
  /*
@@ -17007,7 +17014,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
17007
17014
  return /*#__PURE__*/React__default.createElement(React.Fragment, {
17008
17015
  key: "breadcrumb-".concat(linkText)
17009
17016
  }, /*#__PURE__*/React__default.createElement(InternalLink, {
17010
- "aria-current": index === breadcrumbsList.length - 1 && "location",
17017
+ "aria-current": index === breadcrumbsList.length - 1 ? "location" : "",
17011
17018
  to: linkDestination,
17012
17019
  active: isActive.toString(),
17013
17020
  color: themeValues.color,
@@ -17016,7 +17023,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
17016
17023
  fontWeight: themeValues.fontWeight,
17017
17024
  margin: themeValues.margin,
17018
17025
  extraStyles: "\n text-transform: uppercase;\n ".concat(isActive.toString() === "true" && "pointer-events: none;\n color: ".concat(themeValues.activeBreadcrumbColor, ";\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, "; \n }")
17019
- }, linkText), index < breadcrumbsList.length - 1 && /*#__PURE__*/React__default.createElement(IconChevron, null));
17026
+ }, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React__default.createElement(IconChevron, null) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
17020
17027
  })));
17021
17028
  };
17022
17029
 
@@ -35810,8 +35817,9 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
35810
35817
  borderSize: "3px",
35811
35818
  borderColor: highlightIndex == i ? themeValues.textColor : "transparent",
35812
35819
  borderWidthOverride: "0 0 3px 0",
35813
- extraStyles: "text-align: center;",
35814
- as: "li"
35820
+ extraStyles: "text-align: center; display: block;",
35821
+ as: "li",
35822
+ "aria-current": highlightIndex == i ? "step" : ""
35815
35823
  }, /*#__PURE__*/React__default.createElement(Text$1, {
35816
35824
  variant: "p",
35817
35825
  textAlign: "center",