mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
Links in helper bar now have title attribute
This commit is contained in:
parent
a78e4d1327
commit
6026040add
2 changed files with 10 additions and 5 deletions
|
@ -39,7 +39,8 @@ class HelperBarView extends React.Component {
|
|||
key={'helper_bar_' + index}
|
||||
onClick={item.onClick}
|
||||
target="_blank"
|
||||
href={item.href}>
|
||||
href={item.href}
|
||||
title={item.title}>
|
||||
<i className={'icon-' + item.icon} />
|
||||
{' '}
|
||||
</a>
|
||||
|
@ -49,7 +50,8 @@ class HelperBarView extends React.Component {
|
|||
<a
|
||||
data-testid={testID}
|
||||
key={'helper_bar_' + index}
|
||||
onClick={item.onClick}>
|
||||
onClick={item.onClick}
|
||||
title={item.title}>
|
||||
{item.text ? item.text :
|
||||
<i className={'icon-' + item.icon} />
|
||||
}
|
||||
|
|
|
@ -56,18 +56,21 @@ class MainHelperBarView extends React.Component {
|
|||
this.setState({
|
||||
shownBar: BARS.COMMANDS
|
||||
});
|
||||
}.bind(this)
|
||||
}.bind(this),
|
||||
title: 'Show help'
|
||||
}, {
|
||||
icon: 'globe',
|
||||
onClick: function() {
|
||||
this.setState({
|
||||
shownBar: BARS.INTL
|
||||
});
|
||||
}.bind(this)
|
||||
}.bind(this),
|
||||
title: 'Show available languages'
|
||||
}, {
|
||||
newPageLink: true,
|
||||
icon: 'twitter',
|
||||
href: 'https://twitter.com/petermcottle'
|
||||
href: 'https://twitter.com/petermcottle',
|
||||
title: 'Follow me on Twitter'
|
||||
}];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue