Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(a11y): add "Indietro" text to dash pages #338

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions src/routes/dash/[course]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,19 @@

<div class="max-w-5xl p-4 mx-auto">
<nav class="navbar flex bg-base-200 text-neutral-content rounded-box shadow-sm px-5 mb-5">
<div class="navbar-start">
<div class="navbar-start flex items-center">
<a class="btn btn-outline" title="Indietro" href="/" aria-label="Indietro">
<span class="icon-[akar-icons--arrow-back-thick-fill]"></span>
Indietro
</a>
</div>
<div class="navbar min-h-0 p-0 justify-center items-center">
<h1 class="flex flex-wrap text-xl text-center font-semibold text-base-content">
{data.degree.name}
</h1>
</div>

<div class="navbar-end">
{#if login != null}
{#await login then login}
{#if 'error' in login}
Expand All @@ -65,16 +77,6 @@
{/await}
{/if}
</div>
<div class="navbar min-h-0 p-0 justify-center items-center">
<h1 class="flex flex-wrap text-xl text-center font-semibold text-base-content">
{data.degree.name}
</h1>
</div>
<div class="navbar-end flex items-center">
<a class="btn btn-square btn-ghost" title="Indietro" href="/" aria-label="Indietro">
<span class="text-primary icon-[akar-icons--arrow-back-thick-fill]"></span>
</a>
</div>
</nav>
<ListTeaching
years={reorganizedTeachings.mandatory}
Expand Down
Loading