Skip to content

Commit 0443983

Browse files
authored
add alt attribute and value to all images (#106)
1 parent f224f15 commit 0443983

10 files changed

+12
-12
lines changed

Diff for: stubs/inertia/resources/js/Layouts/AppLayout.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<jet-dropdown align="right" width="48">
2727
<template #trigger>
2828
<button class="flex text-sm border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition duration-150 ease-in-out">
29-
<img class="h-8 w-8 rounded-full" :src="$page.user.profile_photo_url" alt="" />
29+
<img class="h-8 w-8 rounded-full" :src="$page.user.profile_photo_url" :alt="$page.user.name" />
3030
</button>
3131
</template>
3232

@@ -117,7 +117,7 @@
117117
<div class="pt-4 pb-1 border-t border-gray-200">
118118
<div class="flex items-center px-4">
119119
<div class="flex-shrink-0">
120-
<img class="h-10 w-10 rounded-full" :src="$page.user.profile_photo_url" alt="" />
120+
<img class="h-10 w-10 rounded-full" :src="$page.user.profile_photo_url" :alt="$page.user.name" />
121121
</div>
122122

123123
<div class="ml-3">

Diff for: stubs/inertia/resources/js/Pages/Profile/UpdateProfileInformationForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<!-- Current Profile Photo -->
2222
<div class="mt-2" v-show="! photoPreview">
23-
<img :src="$page.user.profile_photo_url" class="rounded-full h-20 w-20">
23+
<img :src="$page.user.profile_photo_url" alt="Current Profile Photo" class="rounded-full h-20 w-20">
2424
</div>
2525

2626
<!-- New Profile Photo Preview -->

Diff for: stubs/inertia/resources/js/Pages/Teams/CreateTeamForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<jet-label value="Team Owner" />
1414

1515
<div class="flex items-center mt-2">
16-
<img class="w-12 h-12 rounded-full" :src="$page.user.profile_photo_url">
16+
<img class="w-12 h-12 rounded-full" :src="$page.user.profile_photo_url" :alt="$page.user.name">
1717

1818
<div class="ml-4 leading-tight">
1919
<div>{{ $page.user.name }}</div>

Diff for: stubs/inertia/resources/js/Pages/Teams/TeamMemberManager.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<div class="space-y-6">
8888
<div class="flex items-center justify-between" v-for="user in team.users">
8989
<div class="flex items-center">
90-
<img class="w-8 h-8 rounded-full" :src="user.profile_photo_url">
90+
<img class="w-8 h-8 rounded-full" :src="user.profile_photo_url" :alt="user.name">
9191
<div class="ml-4">{{ user.name }}</div>
9292
</div>
9393

Diff for: stubs/inertia/resources/js/Pages/Teams/UpdateTeamNameForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<jet-label value="Team Owner" />
1515

1616
<div class="flex items-center mt-2">
17-
<img class="w-12 h-12 rounded-full" :src="team.owner.profile_photo_url">
17+
<img class="w-12 h-12 rounded-full" :src="team.owner.profile_photo_url" :alt="team.owner.name">
1818

1919
<div class="ml-4 leading-tight">
2020
<div>{{ team.owner.name }}</div>

Diff for: stubs/livewire/resources/views/layouts/app.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<x-jet-dropdown align="right" width="48">
4646
<x-slot name="trigger">
4747
<button class="flex text-sm border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition duration-150 ease-in-out">
48-
<img class="h-8 w-8 rounded-full" src="{{ Auth::user()->profile_photo_url }}" alt="" />
48+
<img class="h-8 w-8 rounded-full" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}" />
4949
</button>
5050
</x-slot>
5151

@@ -136,7 +136,7 @@
136136
<div class="pt-4 pb-1 border-t border-gray-200">
137137
<div class="flex items-center px-4">
138138
<div class="flex-shrink-0">
139-
<img class="h-10 w-10 rounded-full" src="{{ Auth::user()->profile_photo_url }}" alt="" />
139+
<img class="h-10 w-10 rounded-full" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}" />
140140
</div>
141141

142142
<div class="ml-3">

Diff for: stubs/livewire/resources/views/profile/update-profile-information-form.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<!-- Current Profile Photo -->
3030
<div class="mt-2" x-show="! photoPreview">
31-
<img src="{{ $this->user->profile_photo_url }}" class="rounded-full h-20 w-20">
31+
<img src="{{ $this->user->profile_photo_url }}" alt="{{ $this->user->name }}" class="rounded-full h-20 w-20">
3232
</div>
3333

3434
<!-- New Profile Photo Preview -->

Diff for: stubs/livewire/resources/views/teams/create-team-form.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<x-jet-label value="Team Owner" />
1313

1414
<div class="flex items-center mt-2">
15-
<img class="w-12 h-12 rounded-full" src="{{ $this->user->profile_photo_url }}">
15+
<img class="w-12 h-12 rounded-full" src="{{ $this->user->profile_photo_url }}" alt="{{ $this->user->name }}">
1616

1717
<div class="ml-4 leading-tight">
1818
<div>{{ $this->user->name }}</div>

Diff for: stubs/livewire/resources/views/teams/team-member-manager.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
@foreach ($team->users->sortBy('name') as $user)
9595
<div class="flex items-center justify-between">
9696
<div class="flex items-center">
97-
<img class="w-8 h-8 rounded-full" src="{{ $user->profile_photo_url }}">
97+
<img class="w-8 h-8 rounded-full" src="{{ $user->profile_photo_url }}" alt="{{ $user->name }}">
9898
<div class="ml-4">{{ $user->name }}</div>
9999
</div>
100100

Diff for: stubs/livewire/resources/views/teams/update-team-name-form.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<x-jet-label value="Team Owner" />
1414

1515
<div class="flex items-center mt-2">
16-
<img class="w-12 h-12 rounded-full" src="{{ $team->owner->profile_photo_url }}">
16+
<img class="w-12 h-12 rounded-full" src="{{ $team->owner->profile_photo_url }}" alt="{{ $team->owner->name }}">
1717

1818
<div class="ml-4 leading-tight">
1919
<div>{{ $team->owner->name }}</div>

0 commit comments

Comments
 (0)