fix a11y for img alts
This commit is contained in:
parent
39b7481da3
commit
b2f08f67ad
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue