@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 +13 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/breadcrumb/Breadcrumb.js +6 -2
- package/src/components/atoms/layouts/Reel.js +7 -0
- package/src/components/molecules/highlight-tab-row/HighlightTabRow.js +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -12163,6 +12163,11 @@ var ReelStyled = styled.div.withConfig({
|
|
|
12163
12163
|
});
|
|
12164
12164
|
|
|
12165
12165
|
var _excluded$g = ["childGap", "height", "childWidth", "padding", "justifyContent", "disableScroll", "useOrderedList", "useUnorderedList", "children"];
|
|
12166
|
+
/*
|
|
12167
|
+
Safari has a bug where it refuses to recognize <ul /> tags as lists when list-style: none is used
|
|
12168
|
+
This affects the apple voice over (mainly used on iOS devices)
|
|
12169
|
+
The solution is to explicitly include "role=List"
|
|
12170
|
+
*/
|
|
12166
12171
|
|
|
12167
12172
|
var Reel = function Reel(_ref) {
|
|
12168
12173
|
var _ref$childGap = _ref.childGap,
|
|
@@ -12195,7 +12200,9 @@ var Reel = function Reel(_ref) {
|
|
|
12195
12200
|
as: elementType,
|
|
12196
12201
|
useOrderedList: useOrderedList,
|
|
12197
12202
|
useUnorderedList: useUnorderedList
|
|
12198
|
-
}, rest
|
|
12203
|
+
}, rest, {
|
|
12204
|
+
role: useOrderedList || useUnorderedList ? "list" : "section"
|
|
12205
|
+
}), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
|
|
12199
12206
|
};
|
|
12200
12207
|
|
|
12201
12208
|
/*
|
|
@@ -16999,7 +17006,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
16999
17006
|
return /*#__PURE__*/React.createElement(Fragment, {
|
|
17000
17007
|
key: "breadcrumb-".concat(linkText)
|
|
17001
17008
|
}, /*#__PURE__*/React.createElement(InternalLink, {
|
|
17002
|
-
"aria-current": index === breadcrumbsList.length - 1
|
|
17009
|
+
"aria-current": index === breadcrumbsList.length - 1 ? "location" : "",
|
|
17003
17010
|
to: linkDestination,
|
|
17004
17011
|
active: isActive.toString(),
|
|
17005
17012
|
color: themeValues.color,
|
|
@@ -17008,7 +17015,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
17008
17015
|
fontWeight: themeValues.fontWeight,
|
|
17009
17016
|
margin: themeValues.margin,
|
|
17010
17017
|
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 }")
|
|
17011
|
-
}, linkText), index < breadcrumbsList.length - 1
|
|
17018
|
+
}, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React.createElement(IconChevron, null) : /*#__PURE__*/React.createElement(Fragment, null));
|
|
17012
17019
|
})));
|
|
17013
17020
|
};
|
|
17014
17021
|
|
|
@@ -35802,8 +35809,9 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
35802
35809
|
borderSize: "3px",
|
|
35803
35810
|
borderColor: highlightIndex == i ? themeValues.textColor : "transparent",
|
|
35804
35811
|
borderWidthOverride: "0 0 3px 0",
|
|
35805
|
-
extraStyles: "text-align: center;",
|
|
35806
|
-
as: "li"
|
|
35812
|
+
extraStyles: "text-align: center; display: block;",
|
|
35813
|
+
as: "li",
|
|
35814
|
+
"aria-current": highlightIndex == i ? "step" : ""
|
|
35807
35815
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
35808
35816
|
variant: "p",
|
|
35809
35817
|
textAlign: "center",
|