site: target should be _blank

This commit is contained in:
afc163 2017-10-31 21:58:41 +08:00
parent cc305209c0
commit 36df1c5f83
2 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,7 @@ const branchUrl = 'https://github.com/ant-design/ant-design/edit/master/';
export default function EditButton({ title, filename }) {
return (
<Tooltip title={title}>
<a className="edit-button" href={`${branchUrl}${filename}`}>
<a className="edit-button" href={`${branchUrl}${filename}`} target="_blank">
<Icon type="edit" />
</a>
</Tooltip>

View File

@ -196,7 +196,12 @@ export default class Header extends React.Component {
</Link>
</Menu.Item>
<Menu.Item key="pro">
<a href="http://pro.ant.design" className="header-link">
<a
href="http://pro.ant.design"
className="header-link"
target="_blank"
rel="noopener noreferrer"
>
<FormattedMessage id="app.header.menu.pro" />
<span style={{ display: 'inline-block', position: 'relative', top: -2, width: 18 }}>
<Badge dot />