@jetbrains/kotlin-web-site-ui 4.10.0-alpha.4 → 4.10.1-alpha.1

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.
@@ -26,7 +26,7 @@ const MENU_POPUP_BREAKPOINT = 640;
26
26
  const Header = forwardRef(({
27
27
  productWebUrl,
28
28
  hasSearch = false,
29
- currentUrl,
29
+ currentUrl: currentUrlProp,
30
30
  currentTitle,
31
31
  className,
32
32
  hasBorder = true,
@@ -41,6 +41,7 @@ const Header = forwardRef(({
41
41
  const [menuPopupExpanded, setMenuPopupExpanded] = useState(false);
42
42
  const [isSearchBoxVisible, setSearchBoxVisible] = useState(false);
43
43
  const [fullSearchActive, setFullSearchActive] = useState(false);
44
+ const currentUrl = currentUrlProp || global?.location?.pathname;
44
45
  const items = useMemo(() => getNavScheme(isUrlActive, currentUrl, isPlayground), [isUrlActive, currentUrl, isPlayground]);
45
46
  const itemsWithoutHomeSection = useMemo(() => items.slice(1), [items]);
46
47
  const headerRef = useRef(null);
@@ -103,7 +103,6 @@
103
103
  justify-content: flex-end;
104
104
  align-items: center;
105
105
  height: 100%;
106
- margin-right: calc(-1 * var(--horizontal-menu-item-padding));
107
106
  }
108
107
 
109
108
  .ktl-horizontal-menu-module_item_vmotC, .ktl-horizontal-menu-module_item-active_gSpD6 {
@@ -178,6 +178,7 @@
178
178
  margin-left: 13px;
179
179
  transition: transform ease-in-out var(--ktl-transition-xfast);
180
180
  flex: 0 0 auto;
181
+ color: black;
181
182
  }
182
183
 
183
184
  .ktl-vertical-menu-module_dropdown-header_77lTy {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jetbrains/kotlin-web-site-ui",
3
3
  "description": "UI components for Kotlin web sites development",
4
- "version": "4.10.0-alpha.4",
4
+ "version": "4.10.1-alpha.1",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [