* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as React from 'react';
+import { ButtonLink } from '../../../components/ui/buttons';
import Toggler from '../../../components/controls/Toggler';
import HelpIcon from '../../../components/icons-components/HelpIcon';
import { lazyLoad } from '../../../components/lazyLoad';
this.setState({ helpOpen });
};
- handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => {
- event.preventDefault();
- event.currentTarget.blur();
+ handleClick = () => {
this.toggleHelp();
};
onRequestClose={this.closeHelp}
open={this.state.helpOpen}
overlay={<EmbedDocsPopup onClose={this.closeHelp} />}>
- <a
+ <ButtonLink
+ aria-expanded={this.state.helpOpen}
+ aria-haspopup={true}
className="navbar-help navbar-icon"
- href="#"
onClick={this.handleClick}
title={translate('help')}>
<HelpIcon />
- </a>
+ </ButtonLink>
</Toggler>
</li>
);