Skip to content

Commit

Permalink
refactor(profile picture): improve alternate text
Browse files Browse the repository at this point in the history
Co-Authored-By: Rita Lopes <[email protected]>
  • Loading branch information
tomas-sucena and MRita443 committed Jan 24, 2025
1 parent 7bba9e6 commit 26670b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/components/forms/picture-input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
}}
>
{#if image}
<img class="h-[200px] w-[200px] rounded-md object-cover" src={image} alt="Avatar" />
<img
class="h-[200px] w-[200px] rounded-md object-cover"
src={image}
alt="Selected {name.replace(/([A-Z])/g, ' $1').toLowerCase()}"
/>
{:else}
<p class="font-medium text-white">{text}<span class="text-2xl">*</span></p>
{/if}
Expand Down

0 comments on commit 26670b4

Please sign in to comment.