Skip to content

Commit

Permalink
add aria-label for SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwormhole authored Jun 14, 2024
1 parent fe3cb7d commit f272de4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/InvoiceForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ willy@wonka.com
<input
class="input"
type="text"
aria-label="invoiceNumber"
name="invoiceNumber"
placeholder="Invoice 30"
bind:value={$invoice.invoiceNumber}
Expand All @@ -144,6 +145,7 @@ willy@wonka.com
<input
class="file-input"
type="file"
aria-label="logo"
name="logo"
accept={validImageTypes.join(",")}
on:change={setLogo}
Expand All @@ -165,6 +167,7 @@ willy@wonka.com
<input
class="input"
type="date"
aria-label="issueDate"
name="issueDate"
bind:value={$invoice.issueDate}
on:change={setAutoDueDate}
Expand All @@ -176,6 +179,7 @@ willy@wonka.com
<input
class="input"
type="date"
aria-label="dueDate"
name="dueDate"
bind:value={$invoice.dueDate}
required
Expand All @@ -189,6 +193,7 @@ willy@wonka.com
<textarea
class="textarea"
placeholder={fromPlaceholder}
aria-label="from"
name="from"
bind:value={$invoice.from}
/>
Expand All @@ -197,6 +202,7 @@ willy@wonka.com
<textarea
class="textarea"
placeholder={toPlaceholder}
aria-label="to"
name="to"
bind:value={$invoice.to}
/>
Expand All @@ -220,6 +226,7 @@ willy@wonka.com
<td class="p-0">
<input
id="description"
aria-label="rowDescription"
class="input is-borderless"
type="text"
placeholder="Extreme Milky Chocolate High Quality 20% Cocoa"
Expand All @@ -230,6 +237,7 @@ willy@wonka.com
<td class="p-0">
<input
id="rate"
aria-label="rowRate"
class="input is-borderless"
type="number"
on:change|preventDefault={setDecimal}
Expand All @@ -243,6 +251,7 @@ willy@wonka.com
<td class="p-0">
<input
id="quantity"
aria-label="rowQuantity"
class="input is-borderless"
type="number"
on:change|preventDefault={setDecimal}
Expand Down Expand Up @@ -281,6 +290,7 @@ willy@wonka.com
<textarea
class="textarea mt-5 mb-5"
placeholder="Optional Notes..."
aria-label="notes"
name="notes"
rows="12"
bind:value={$invoice.notes}
Expand Down

0 comments on commit f272de4

Please sign in to comment.