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/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue React v8.9.1 (https://bruegmann.github.io/blue-react)
2
+ * Blue React v8.9.2 (https://bruegmann.github.io/blue-react)
3
3
  * Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-react/blob/master/LICENSE).
4
4
  */
5
5
 
@@ -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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-react",
3
- "version": "8.9.1",
3
+ "version": "8.9.2",
4
4
  "description": "Blue React Components",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "main": "index.js",