@functionalcms/svelte-components 2.12.3 → 2.12.5
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.
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
a {
|
|
15
15
|
display: block;
|
|
16
|
+
font-weight: bold;
|
|
16
17
|
color: var(--functional-menu-item-color);
|
|
17
18
|
margin: var(--functional-menu-item-hover-margin);
|
|
18
19
|
padding: var(--functional-menu-item-hover-padding);
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
border-bottom: var(--functional-menu-item-selected-border-bottom);
|
|
33
34
|
border-left: var(--functional-menu-item-selected-border-left);
|
|
34
35
|
}
|
|
35
|
-
li[aria-current='true'] {
|
|
36
|
+
li[aria-current='true'] a {
|
|
36
37
|
color: var(--functional-menu-item-selected-color);
|
|
37
38
|
margin: var(--functional-menu-item-hover-margin);
|
|
38
39
|
padding: var(--functional-menu-item-hover-padding);
|
|
@@ -48,9 +49,10 @@
|
|
|
48
49
|
import { afterNavigate } from "$app/navigation";
|
|
49
50
|
import { Drawer, Button } from "agnostic-svelte";
|
|
50
51
|
import { page } from "$app/stores";
|
|
51
|
-
import { Placement } from "../Styling.js";
|
|
52
|
+
import { Placement, Sizes } from "../Styling.js";
|
|
52
53
|
import { pages as pagesStore } from "../../stores/pages.js";
|
|
53
54
|
import { isSelected, selectVisible } from "./MenuFunctions.js";
|
|
55
|
+
import Spacer from "../Spacer.svelte";
|
|
54
56
|
export let authentication = false;
|
|
55
57
|
export let css = "";
|
|
56
58
|
export let noBorder = false;
|
|
@@ -88,6 +90,7 @@ const klasses = [
|
|
|
88
90
|
placement={placement}
|
|
89
91
|
on:instance={assignDrawerRef}
|
|
90
92
|
title="Menu">
|
|
93
|
+
<Spacer height={Sizes.V18} />
|
|
91
94
|
<ul>
|
|
92
95
|
{#each visibleNavItems as pageItem}
|
|
93
96
|
<li aria-current={isSelected(includeSubpagesForSelect, $page, pageItem)}>
|