@cullsin/lnc-menu 5.6.0 → 5.8.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.
@@ -18,26 +18,59 @@
18
18
  .MuiListItem-root {
19
19
  padding: 15px;
20
20
 
21
+ // Normalize all icons (MUI icons and custom SVGs)
22
+ .MuiListItemIcon-root {
23
+ color: #fff;
24
+ min-width: 30px;
25
+ cursor: pointer;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+
30
+ // Ensure consistent icon sizing for both MUI icons and custom SVGs
31
+ svg,
32
+ .MuiSvgIcon-root {
33
+ width: 24px;
34
+ height: 24px;
35
+ display: block;
36
+ }
37
+ }
38
+
39
+ .MuiListItemText-root {
40
+ margin-top: 0;
41
+ margin-bottom: 0;
42
+
43
+ .MuiTypography-root {
44
+ font: 14px/24px "OpenSans-SemiBold";
45
+ color: #fff;
46
+ cursor: pointer;
47
+ white-space: nowrap;
48
+ }
49
+ }
50
+
21
51
  // Selected state - unified capsule background
22
52
  &.selected {
23
- padding: 7px;
53
+ padding: 10px 15px;
24
54
  background: linear-gradient(to bottom, #7ad4f7, #20a9ef) !important;
25
55
  border-radius: 20px;
26
56
  margin: 0 7px;
57
+ display: flex;
58
+ align-items: center;
27
59
 
28
60
  .MuiListItemIcon-root {
29
61
  color: #1e2f97;
30
- padding: 11px 10px;
31
- min-width: 25px;
62
+ min-width: auto;
63
+ margin-right: 8px;
64
+
65
+ svg,
66
+ .MuiSvgIcon-root {
67
+ fill: #1e2f97;
68
+ color: #1e2f97;
69
+ }
32
70
  }
33
71
 
34
72
  .MuiListItemText-root {
35
73
  margin: 0;
36
-
37
- span {
38
- padding: 10px 15px 10px 5px;
39
- display: inline-block;
40
- }
41
74
 
42
75
  .MuiTypography-root {
43
76
  color: #1e2f97;
@@ -47,48 +80,33 @@
47
80
 
48
81
  // Hover state - unified capsule background
49
82
  &:hover:not(.selected) {
50
- padding: 7px;
83
+ padding: 10px 15px;
51
84
  background: linear-gradient(to bottom, #7ad4f7, #20a9ef) !important;
52
85
  border-radius: 20px;
53
86
  margin: 0 7px;
87
+ display: flex;
88
+ align-items: center;
54
89
 
55
90
  .MuiListItemIcon-root {
56
91
  color: #1e2f97;
57
- padding: 11px 10px;
58
- min-width: 25px;
92
+ min-width: auto;
93
+ margin-right: 8px;
94
+
95
+ svg,
96
+ .MuiSvgIcon-root {
97
+ fill: #1e2f97;
98
+ color: #1e2f97;
99
+ }
59
100
  }
60
101
 
61
102
  .MuiListItemText-root {
62
103
  margin: 0;
63
-
64
- span {
65
- padding: 10px 15px 10px 5px;
66
- display: inline-block;
67
- }
68
104
 
69
105
  .MuiTypography-root {
70
106
  color: #1e2f97;
71
107
  }
72
108
  }
73
109
  }
74
-
75
- .MuiListItemIcon-root {
76
- color: #fff;
77
- min-width: 30px;
78
- cursor: pointer;
79
- }
80
-
81
- .MuiListItemText-root {
82
- margin-top: 0;
83
- margin-bottom: 0;
84
-
85
- .MuiTypography-root {
86
- font: 14px/24px "OpenSans-SemiBold";
87
- color: #fff;
88
- cursor: pointer;
89
- white-space: nowrap;
90
- }
91
- }
92
110
  }
93
111
  }
94
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cullsin/lnc-menu",
3
- "version": "5.6.0",
3
+ "version": "5.8.0",
4
4
  "description": "Reusable SideMenu component for MedGenome LNC platform using MUI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",