Skip to content

Commit

Permalink
wrap image in link. add alt tag
Browse files Browse the repository at this point in the history
  • Loading branch information
james2doyle committed Dec 20, 2017
1 parent 25c3fd3 commit 2277228
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pages/account/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<div class="one-half column centered">
<div class="blankslate blankslate-clean-background">
<div class="profile-image centered">
<img v-bind:src="account.image" width="100" height="100" />
<a v-bind:href="account.image" class="d-inline-block" target="_blank" title="Click To View">
<img v-bind:src="account.image" width="100" height="100" v-bind:alt="imageAlt" />
</a>
</div>
<h3 v-text="account.displayName"></h3>
<p>View and manage your account</p>
Expand Down Expand Up @@ -42,10 +44,15 @@ export default {
components: {
EditAccountForm
},
computed: mapState([
'user',
'account'
]),
computed: {
...mapState([
'user',
'account'
]),
imageAlt () {
return `Profile image for ${this.account.displayName}`
}
},
data () {
return {
editing: false
Expand Down

0 comments on commit 2277228

Please sign in to comment.