@campxdev/react-blueprint 1.5.1 → 1.5.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
|
@@ -33,7 +33,7 @@ export const SideBarMenuItem = ({
|
|
|
33
33
|
const newPath = currentMenuPath ? `${currentMenuPath}${path}` : path;
|
|
34
34
|
|
|
35
35
|
let resolved = useResolvedPath(newPath);
|
|
36
|
-
let match = useMatch({ path: resolved.pathname, end:
|
|
36
|
+
let match = useMatch({ path: resolved.pathname, end: false });
|
|
37
37
|
|
|
38
38
|
let [expanded, setExpanded] = useState(!collapsed && !!match);
|
|
39
39
|
const subMenuButtonClickHandler = () => {
|
|
@@ -18,7 +18,8 @@ export const SidebarSubMenuItem = ({
|
|
|
18
18
|
const newPath = `${subMenuButtonPath}${path}`;
|
|
19
19
|
|
|
20
20
|
let resolved = useResolvedPath(newPath);
|
|
21
|
-
let match = useMatch({ path: resolved.pathname, end:
|
|
21
|
+
let match = useMatch({ path: resolved.pathname, end: false });
|
|
22
|
+
console.log(match);
|
|
22
23
|
|
|
23
24
|
const { StyledListItem, StyledLinkButton, StyledListItemButton } =
|
|
24
25
|
createSidebarStyles(collapsed);
|
|
@@ -34,6 +34,20 @@ export const createSidebarStyles = (collapsed: boolean) => {
|
|
|
34
34
|
height: '100%',
|
|
35
35
|
borderRadius: '8px',
|
|
36
36
|
backgroundColor: theme.palette.surface.paperBackground,
|
|
37
|
+
overflowY: 'auto',
|
|
38
|
+
'&::-webkit-scrollbar': {
|
|
39
|
+
width: '0.3em',
|
|
40
|
+
height: '0.2em',
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
'&::-webkit-scrollbar-thumb': {
|
|
44
|
+
backgroundColor: theme.palette.border.primary,
|
|
45
|
+
borderRadius: '3px',
|
|
46
|
+
|
|
47
|
+
// "&:hover": {
|
|
48
|
+
// backgroundColor: theme.palette.border.secondary,
|
|
49
|
+
// },
|
|
50
|
+
},
|
|
37
51
|
}));
|
|
38
52
|
|
|
39
53
|
const StyledCollapsibleSection = styled(Box)<StyledListItemButtonProps>(
|