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

Add election editing #650

Merged
merged 11 commits into from
Dec 16, 2024
5 changes: 3 additions & 2 deletions src/routes/(app)/elections/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
{#if isAuthorized(apiNames.ELECTION.UPDATE, data.user)}
<a
href={"/elections/" + election.id + "/edit"}
class="btn btn-secondary btn-sm ml-auto">Redigera</a
>
class="btn btn-outline btn-sm ml-auto"
Copy link
Member

@danieladugyan danieladugyan Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a lot of purple (btn-secondary) buttons on the page, but I'm not a big fan of them so I changed this one to a more neutral color.

I'm not really an expert on UI design (clearly... 😄), but colors tend to draw attention and usually signify some kind of main action we want the user to take. Editing is more of an optional action and thus doesn't need to be highlighted.

>Redigera
</a>
{/if}
<img
class="w-5/12 self-center text-center"
Expand Down