@thecb/components 7.0.2-beta.1 → 7.0.2-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.0.2-beta.1",
3
+ "version": "7.0.2-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -35,7 +35,7 @@ const NavTab = ({ path, label, themeValues }) => {
35
35
  color: ${themeValues.activeColor};
36
36
  ${isMobile ? "" : `${border}`}
37
37
  };
38
- padding: 1.25rem 0.1rem;
38
+ padding: 1.25rem 0;
39
39
  `}
40
40
  >
41
41
  {label}
@@ -24,7 +24,8 @@ const CollapsibleSection = ({
24
24
  stackTitleContent,
25
25
  sectionGap = "0.5rem",
26
26
  name = "",
27
- index = 1
27
+ index = 1,
28
+ overflowY = "hidden"
28
29
  }) => {
29
30
  const handleKeyDown = e => {
30
31
  if (e.keyCode === 13) {
@@ -126,7 +127,7 @@ const CollapsibleSection = ({
126
127
  initial={initiallyOpen ? "open" : "closed"}
127
128
  exit="closed"
128
129
  variants={wrapper}
129
- extraStyles={`transform-origin: 100% 0; overflow-y: hidden;`}
130
+ extraStyles={`transform-origin: 100% 0; overflow-y: ${overflowY};`}
130
131
  id={`${id}-content`}
131
132
  role={"region"}
132
133
  aria-labelledby={`${id}-button`}
@@ -19,6 +19,7 @@ export interface CollapsibleSectionProps {
19
19
  sectionGap?: string;
20
20
  name?: string;
21
21
  index?: number;
22
+ overflowY?: string;
22
23
  }
23
24
 
24
25
  export const CollapsibleSection: React.FC<Expand<CollapsibleSectionProps> &