Skip to content

Add alt attribute/value to image tag #106

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

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/inertia/resources/js/Layouts/AppLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<jet-dropdown align="right" width="48">
<template #trigger>
<button class="flex text-sm border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition duration-150 ease-in-out">
<img class="h-8 w-8 rounded-full" :src="$page.user.profile_photo_url" alt="" />
<img class="h-8 w-8 rounded-full" :src="$page.user.profile_photo_url" :alt="$page.user.name" />
</button>
</template>

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

<div class="ml-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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

<!-- New Profile Photo Preview -->
Expand Down
2 changes: 1 addition & 1 deletion stubs/inertia/resources/js/Pages/Teams/CreateTeamForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<jet-label value="Team Owner" />

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

<div class="ml-4 leading-tight">
<div>{{ $page.user.name }}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<div class="space-y-6">
<div class="flex items-center justify-between" v-for="user in team.users">
<div class="flex items-center">
<img class="w-8 h-8 rounded-full" :src="user.profile_photo_url">
<img class="w-8 h-8 rounded-full" :src="user.profile_photo_url" :alt="user.name">
<div class="ml-4">{{ user.name }}</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<jet-label value="Team Owner" />

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

<div class="ml-4 leading-tight">
<div>{{ team.owner.name }}</div>
Expand Down
4 changes: 2 additions & 2 deletions stubs/livewire/resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<x-jet-dropdown align="right" width="48">
<x-slot name="trigger">
<button class="flex text-sm border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition duration-150 ease-in-out">
<img class="h-8 w-8 rounded-full" src="{{ Auth::user()->profile_photo_url }}" alt="" />
<img class="h-8 w-8 rounded-full" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}" />
</button>
</x-slot>

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

<div class="ml-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

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

<!-- New Profile Photo Preview -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<x-jet-label value="Team Owner" />

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

<div class="ml-4 leading-tight">
<div>{{ $this->user->name }}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
@foreach ($team->users->sortBy('name') as $user)
<div class="flex items-center justify-between">
<div class="flex items-center">
<img class="w-8 h-8 rounded-full" src="{{ $user->profile_photo_url }}">
<img class="w-8 h-8 rounded-full" src="{{ $user->profile_photo_url }}" alt="{{ $user->name }}">
<div class="ml-4">{{ $user->name }}</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<x-jet-label value="Team Owner" />

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

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