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> <style>
img { img {
width: 48px; width: 48px;

View file

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

View file

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