@streamscloud/kit 0.94.5 → 0.94.6
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.
|
@@ -32,7 +32,7 @@ const handleActionsClosed = () => {
|
|
|
32
32
|
<span class="nav-menu-item__badge">{badgeText}</span>
|
|
33
33
|
{/if}
|
|
34
34
|
</span>
|
|
35
|
-
<span class="nav-menu-item__label">{label}</span>
|
|
35
|
+
<span class="nav-menu-item__label" class:nav-menu-item__label--active-plain={activePlain}>{label}</span>
|
|
36
36
|
{/snippet}
|
|
37
37
|
|
|
38
38
|
<div
|
|
@@ -44,11 +44,24 @@ const handleActionsClosed = () => {
|
|
|
44
44
|
class:nav-menu-item--with-actions={actionsShown}
|
|
45
45
|
class:nav-menu-item--actions-opened={actionsOpened}>
|
|
46
46
|
{#if href && !disabled}
|
|
47
|
-
<a
|
|
47
|
+
<a
|
|
48
|
+
class="nav-menu-item__control"
|
|
49
|
+
class:nav-menu-item__control--with-actions={actionsShown}
|
|
50
|
+
href={href}
|
|
51
|
+
target={target}
|
|
52
|
+
rel={rel}
|
|
53
|
+
aria-current={active ? 'page' : undefined}
|
|
54
|
+
onclick={handleClick}>
|
|
48
55
|
{@render content()}
|
|
49
56
|
</a>
|
|
50
57
|
{:else}
|
|
51
|
-
<button
|
|
58
|
+
<button
|
|
59
|
+
type="button"
|
|
60
|
+
class="nav-menu-item__control"
|
|
61
|
+
class:nav-menu-item__control--with-actions={actionsShown}
|
|
62
|
+
disabled={disabled}
|
|
63
|
+
aria-current={active ? 'page' : undefined}
|
|
64
|
+
onclick={handleClick}>
|
|
52
65
|
{@render content()}
|
|
53
66
|
</button>
|
|
54
67
|
{/if}
|
|
@@ -127,9 +140,6 @@ signal and hover keeps working on the active row; `'filled'` plates it and suppr
|
|
|
127
140
|
.nav-menu-item--active-filled {
|
|
128
141
|
background: var(--_nav-menu-item--background-active);
|
|
129
142
|
}
|
|
130
|
-
.nav-menu-item--active-plain {
|
|
131
|
-
font-weight: var(--_nav-menu-item--font-weight-active);
|
|
132
|
-
}
|
|
133
143
|
.nav-menu-item--disabled {
|
|
134
144
|
color: var(--_nav-menu-item--color-disabled);
|
|
135
145
|
}
|
|
@@ -169,7 +179,7 @@ signal and hover keeps working on the active row; `'filled'` plates it and suppr
|
|
|
169
179
|
outline: 2px solid var(--sc-kit--color--border--focus);
|
|
170
180
|
outline-offset: -2px;
|
|
171
181
|
}
|
|
172
|
-
.nav-menu-
|
|
182
|
+
.nav-menu-item__control--with-actions {
|
|
173
183
|
padding-right: calc(var(--_nav-menu-item--actions-size) + var(--_nav-menu-item--actions-inset) * 2);
|
|
174
184
|
}
|
|
175
185
|
|
|
@@ -213,6 +223,9 @@ signal and hover keeps working on the active row; `'filled'` plates it and suppr
|
|
|
213
223
|
white-space: nowrap;
|
|
214
224
|
overflow: hidden;
|
|
215
225
|
}
|
|
226
|
+
.nav-menu-item__label--active-plain {
|
|
227
|
+
font-weight: var(--_nav-menu-item--font-weight-active);
|
|
228
|
+
}
|
|
216
229
|
|
|
217
230
|
.nav-menu-item__actions {
|
|
218
231
|
position: absolute;
|