blue-react 8.9.1 → 8.9.2
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/components/MenuItem.js +1 -1
- package/dist/components/SidebarMenuItem.js +1 -1
- package/dist/style.css +14 -6
- package/dist/style.min.css +3 -3
- package/dist/style.scss +1 -1
- package/dist/styles/mixins/_sidebar.scss +15 -1
- package/dist/types/components/MenuItem.d.ts +4 -0
- package/package.json +1 -1
package/dist/style.scss
CHANGED
|
@@ -94,7 +94,8 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&:hover,
|
|
97
|
-
&:active
|
|
97
|
+
&:active,
|
|
98
|
+
&.highlighted {
|
|
98
99
|
color: inherit;
|
|
99
100
|
border-color: transparent;
|
|
100
101
|
|
|
@@ -104,6 +105,19 @@
|
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
|
|
108
|
+
&.highlighted {
|
|
109
|
+
&::before {
|
|
110
|
+
opacity: 0.16;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:hover,
|
|
115
|
+
&:active {
|
|
116
|
+
&::before {
|
|
117
|
+
opacity: 0.25;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
107
121
|
&.active::after {
|
|
108
122
|
content: "";
|
|
109
123
|
position: absolute;
|
|
@@ -30,6 +30,10 @@ export interface MenuItemProps {
|
|
|
30
30
|
* Should be set as active.
|
|
31
31
|
*/
|
|
32
32
|
isActive?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Set true to highlight the current menu item.
|
|
35
|
+
*/
|
|
36
|
+
highlighted?: boolean;
|
|
33
37
|
/**
|
|
34
38
|
* When using Blue React's routing system: define this link as home page link.
|
|
35
39
|
*/
|