fix a11y for img alts

This commit is contained in:
Nolan Lawson 2018-01-14 11:36:31 -08:00
parent 39b7481da3
commit b2f08f67ad
3 changed files with 2 additions and 6 deletions

View File

@ -1,4 +1,4 @@
<img src="{{account.avatar_static}}">
<img alt="Profile picture for {{account.acct}}" src="{{account.avatar_static}}">
<style>
img {
width: 48px;

View File

@ -9,7 +9,7 @@
{{#if instanceUserAccount}}
<h2>Logged in as:</h2>
<div class="acct-current-user">
<img alt="Avatar for {{instanceUserAccount.acct}}"
<img alt="Profile picture for {{instanceUserAccount.acct}}"
class="acct-avatar" src="{{instanceUserAccount.avatar}}" />
<a class="acct-handle" rel="noopener" target="_blank"
href="{{instanceUserAccount.url}}">@{{instanceUserAccount.acct}}</a>

View File

@ -57,7 +57,6 @@
import { switchToTheme } from '../../_utils/themeEngine'
import { toast } from '../../_utils/toast'
import LoadingMask from '../../_components/LoadingMask'
import { fade } from 'svelte-transitions'
const REDIRECT_URI = (typeof location !== 'undefined' ?
location.origin : 'https://pinafore.social') + '/settings/instances/add'
@ -79,9 +78,6 @@
LoadingMask
},
store: () => store,
transitions: {
fade
},
methods: {
onSubmit: async function(event) {
event.preventDefault()