From 9e6726a8606a3c5e1e9f31860e2fb5d85c5cc7c7 Mon Sep 17 00:00:00 2001 From: Script Raccoon Date: Tue, 14 Apr 2026 18:33:51 +0200 Subject: [PATCH 1/7] describe labels in suggestion form, add aria-invalid --- src/components/SuggestionForm.svelte | 44 +++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/src/components/SuggestionForm.svelte b/src/components/SuggestionForm.svelte index b13c181d..ba11e9c7 100644 --- a/src/components/SuggestionForm.svelte +++ b/src/components/SuggestionForm.svelte @@ -16,6 +16,10 @@ let url = $state('') let sending = $state(false) + const TITLE_MAX_LENGTH = 50 + const BODY_MAX_LENGTH = 10000 + const NAME_MAX_LENGTH = 50 + async function create_issue(e: SubmitEvent) { e.preventDefault() @@ -68,30 +72,47 @@
- + TITLE_MAX_LENGTH} />
- +
- - + + NAME_MAX_LENGTH} + />
-
- - {#if error} -

- - Error: {error} + {#if hide_form} + + {:else} +

Suggestion Form

+ +

+ Use the form below to report missing data, submit an issue, or make a + suggestion.

- {/if} - {#if url} -

- - Your suggestion has been created as a - GitHub issue. We will review it shortly. -

+
+
+ + TITLE_MAX_LENGTH} + /> +
+ +
+ + +
+ +
+ + NAME_MAX_LENGTH} + /> +
+ + +
+ + {#if error} +

+ + Error: {error} +

+ {/if} + + {#if url} +

+ + Your suggestion has been created as a + GitHub issue. We will review it shortly. +

+ {/if} {/if}