Commit 9da8cb53 authored by jim's avatar jim

Improve accessibility

parent 344c9f74
......@@ -9,7 +9,12 @@ const GlobalFooter = ({ className, links, copyright }) => {
{links && (
<div className={styles.links}>
{links.map(link => (
<a key={link.key} target={link.blankTarget ? '_blank' : '_self'} href={link.href}>
<a
key={link.key}
title={link.key}
target={link.blankTarget ? '_blank' : '_self'}
href={link.href}
>
{link.title}
</a>
))}
......
......@@ -125,7 +125,12 @@ export default class GlobalHeaderRight extends PureComponent {
{currentUser.name ? (
<Dropdown overlay={menu}>
<span className={`${styles.action} ${styles.account}`}>
<Avatar size="small" className={styles.avatar} src={currentUser.avatar} />
<Avatar
size="small"
className={styles.avatar}
src={currentUser.avatar}
alt="avatar"
/>
<span className={styles.name}>{currentUser.name}</span>
</span>
</Dropdown>
......
......@@ -78,6 +78,7 @@ export default class HeaderSearch extends PureComponent {
ref={node => {
this.input = node;
}}
aria-label={placeholder}
placeholder={placeholder}
onKeyDown={this.onKeyDown}
onBlur={this.leaveSearchMode}
......
import React, { Fragment } from 'react';
import { Layout, Icon } from 'antd';
import GlobalFooter from '../components/GlobalFooter';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment