UpdateIndicator: Fix a11y lints

Summary: Adding a role and tabIndex because it's clickable.

Reviewed By: mweststrate

Differential Revision: D20814436

fbshipit-source-id: 2d5acc06363df0cce1c24df7e77b1a6eaa98ab63
This commit is contained in:
Pascal Hartig
2020-04-03 04:00:53 -07:00
committed by Facebook GitHub Bot
parent e37bccaf04
commit 9bd58a46c4

View File

@@ -74,7 +74,10 @@ export default class UpdateIndicator extends React.PureComponent<Props, State> {
const container = (
<Container>
<span onClick={() => shell.openExternal(result.url)}>
<span
onClick={() => shell.openExternal(result.url)}
role="button"
tabIndex={0}>
<Glyph
color={getSeverityColor(this.props.launcherMsg.severity)}
name="caution-triangle"