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}
|
key={'helper_bar_' + index}
|
||||||
onClick={item.onClick}
|
onClick={item.onClick}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={item.href}>
|
href={item.href}
|
||||||
|
title={item.title}>
|
||||||
<i className={'icon-' + item.icon} />
|
<i className={'icon-' + item.icon} />
|
||||||
{' '}
|
{' '}
|
||||||
</a>
|
</a>
|
||||||
|
@ -49,7 +50,8 @@ class HelperBarView extends React.Component {
|
||||||
<a
|
<a
|
||||||
data-testid={testID}
|
data-testid={testID}
|
||||||
key={'helper_bar_' + index}
|
key={'helper_bar_' + index}
|
||||||
onClick={item.onClick}>
|
onClick={item.onClick}
|
||||||
|
title={item.title}>
|
||||||
{item.text ? item.text :
|
{item.text ? item.text :
|
||||||
<i className={'icon-' + item.icon} />
|
<i className={'icon-' + item.icon} />
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,18 +56,21 @@ class MainHelperBarView extends React.Component {
|
||||||
this.setState({
|
this.setState({
|
||||||
shownBar: BARS.COMMANDS
|
shownBar: BARS.COMMANDS
|
||||||
});
|
});
|
||||||
}.bind(this)
|
}.bind(this),
|
||||||
|
title: 'Show help'
|
||||||
}, {
|
}, {
|
||||||
icon: 'globe',
|
icon: 'globe',
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
this.setState({
|
this.setState({
|
||||||
shownBar: BARS.INTL
|
shownBar: BARS.INTL
|
||||||
});
|
});
|
||||||
}.bind(this)
|
}.bind(this),
|
||||||
|
title: 'Show available languages'
|
||||||
}, {
|
}, {
|
||||||
newPageLink: true,
|
newPageLink: true,
|
||||||
icon: 'twitter',
|
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