@cullsin/lnc-menu 6.5.0 → 6.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/src/SideMenu.js +2 -1
- package/dist/src/sidemenu.scss +13 -49
- package/package.json +1 -1
package/dist/src/SideMenu.js
CHANGED
|
@@ -63,6 +63,7 @@ function SideMenu({ useDrawer, SampleMgmtIcon, location, language = 'en' }) {
|
|
|
63
63
|
overflowY: "auto",
|
|
64
64
|
zIndex: 100,
|
|
65
65
|
},
|
|
66
|
-
}, children: _jsx(List, { children: menuItems.map((item, index) => (_jsx(Tooltip, { title: item.text, placement: "right", disableHoverListener: isDrawerOpen, children: _jsxs(ListItem, { button: true, selected:
|
|
66
|
+
}, children: _jsx(List, { children: menuItems.map((item, index) => (_jsx(Tooltip, { title: item.text, placement: "right", disableHoverListener: isDrawerOpen, children: _jsxs(ListItem, { button: true, selected: true, className: "selected" // DEBUG: Force selected class for all items
|
|
67
|
+
, onClick: () => handleMenuClick(item), children: [_jsx(ListItemIcon, { children: item.icon }), isDrawerOpen && _jsx(ListItemText, { primary: item.text })] }) }, index))) }) }) }));
|
|
67
68
|
}
|
|
68
69
|
export default SideMenu;
|
package/dist/src/sidemenu.scss
CHANGED
|
@@ -17,19 +17,20 @@
|
|
|
17
17
|
|
|
18
18
|
.MuiList-root {
|
|
19
19
|
.MuiListItem-root {
|
|
20
|
-
// Apply capsule layout
|
|
20
|
+
// Apply capsule layout with gradient permanently for testing
|
|
21
21
|
padding: 10px 15px;
|
|
22
22
|
margin: 4px 12px;
|
|
23
23
|
border-radius: 20px;
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
26
|
-
|
|
26
|
+
justify-content: center;
|
|
27
|
+
background: linear-gradient(to bottom, #7ad4f7, #20a9ef) !important;
|
|
27
28
|
|
|
28
29
|
// Normalize all icons (MUI icons and custom SVGs)
|
|
29
30
|
.MuiListItemIcon-root {
|
|
30
|
-
color: #
|
|
31
|
+
color: #1e2f97;
|
|
31
32
|
min-width: auto;
|
|
32
|
-
margin-right:
|
|
33
|
+
margin-right: 0;
|
|
33
34
|
cursor: pointer;
|
|
34
35
|
display: flex;
|
|
35
36
|
align-items: center;
|
|
@@ -41,61 +42,24 @@
|
|
|
41
42
|
width: 24px;
|
|
42
43
|
height: 25px;
|
|
43
44
|
display: block;
|
|
44
|
-
|
|
45
|
+
fill: #1e2f97;
|
|
46
|
+
color: #1e2f97;
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|
|
50
|
+
// Add margin-right to icon only when text is visible
|
|
51
|
+
.MuiListItemIcon-root + .MuiListItemText-root {
|
|
52
|
+
margin-left: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
48
55
|
.MuiListItemText-root {
|
|
49
56
|
margin: 0;
|
|
50
57
|
|
|
51
58
|
.MuiTypography-root {
|
|
52
59
|
font: 14px/24px "OpenSans-SemiBold";
|
|
53
|
-
color: #
|
|
60
|
+
color: #1e2f97;
|
|
54
61
|
cursor: pointer;
|
|
55
62
|
white-space: nowrap;
|
|
56
|
-
transition: color 0.2s ease;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Selected state - active capsule with gradient background
|
|
61
|
-
&.selected {
|
|
62
|
-
background: linear-gradient(to bottom, #7ad4f7, #20a9ef) !important;
|
|
63
|
-
|
|
64
|
-
.MuiListItemIcon-root {
|
|
65
|
-
color: #1e2f97;
|
|
66
|
-
|
|
67
|
-
svg,
|
|
68
|
-
.MuiSvgIcon-root {
|
|
69
|
-
fill: #1e2f97;
|
|
70
|
-
color: #1e2f97;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.MuiListItemText-root {
|
|
75
|
-
.MuiTypography-root {
|
|
76
|
-
color: #1e2f97;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// Hover state - show gradient background on non-selected items
|
|
82
|
-
&:hover:not(.selected) {
|
|
83
|
-
background: linear-gradient(to bottom, #7ad4f7, #20a9ef) !important;
|
|
84
|
-
|
|
85
|
-
.MuiListItemIcon-root {
|
|
86
|
-
color: #1e2f97;
|
|
87
|
-
|
|
88
|
-
svg,
|
|
89
|
-
.MuiSvgIcon-root {
|
|
90
|
-
fill: #1e2f97;
|
|
91
|
-
color: #1e2f97;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.MuiListItemText-root {
|
|
96
|
-
.MuiTypography-root {
|
|
97
|
-
color: #1e2f97;
|
|
98
|
-
}
|
|
99
63
|
}
|
|
100
64
|
}
|
|
101
65
|
}
|