Skip to content

Commit f97f10d

Browse files
committed
fixes
1 parent 113f516 commit f97f10d

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

packages/site-kit/src/lib/nav/Menu.svelte

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,16 @@
224224
{/if}
225225
</div>
226226

227-
<button
228-
class="back-button raised icon"
229-
onclick={() => ($show_context_menu = false)}
230-
inert={!show_context_menu}
231-
>
232-
<Icon name="arrow-left" size={18} />
233-
<span
234-
>{#if back_button}{@render back_button()}{:else}Back to main menu{/if}</span
227+
<label class="back-button">
228+
<button
229+
class="raised icon"
230+
onclick={() => ($show_context_menu = false)}
231+
inert={!show_context_menu}
235232
>
236-
</button>
233+
<Icon name="arrow-left" size={18} />
234+
</button>
235+
<span>Back to main menu</span>
236+
</label>
237237
</div>
238238
</div>
239239
</div>
@@ -360,25 +360,18 @@
360360
361361
.back-button {
362362
position: absolute;
363-
bottom: -1px;
363+
bottom: 0;
364364
right: 0;
365-
z-index: 9;
366-
367365
display: flex;
368366
align-items: center;
369367
justify-content: start;
370368
gap: 1rem;
371-
372369
font: var(--sk-font-ui-medium);
373370
color: var(--sk-text-3);
374-
375371
background-color: var(--sk-back-3);
376-
377-
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.19);
378-
379372
width: 50%;
380-
height: 48px;
381-
padding: 0 1.5rem;
373+
height: 4.8rem;
374+
padding: 0 var(--sk-page-padding-side);
382375
}
383376
384377
.universal .contents,

0 commit comments

Comments
 (0)