Skip to content

Commit

Permalink
fix(FEC-9634): cast button messes up bottom bar (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyBregman committed Feb 3, 2020
1 parent d8e22ea commit c813674
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/cast/cast.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ class Cast extends Component {
render(props: any): ?React$Element<any> {
if (props.isCasting || props.isCastAvailable) {
return (
<Tooltip label={this.props.castText}>
<div
role="button"
aria-label={this.props.castText}
className={style.controlButtonContainer}
onClick={() => this.onClick()}
onKeyDown={e => {
if (e.keyCode === KeyMap.ENTER) {
this.props.updateBackdropVisibility(true);
this.props.player.startCasting().catch(() => this.props.updateBackdropVisibility(false));
}
}}>
<div
role="button"
aria-label={this.props.castText}
className={style.controlButtonContainer}
onClick={() => this.onClick()}
onKeyDown={e => {
if (e.keyCode === KeyMap.ENTER) {
this.props.updateBackdropVisibility(true);
this.props.player.startCasting().catch(() => this.props.updateBackdropVisibility(false));
}
}}>
<Tooltip label={this.props.castText}>
<google-cast-launcher className={style.castButton} tabIndex="0" />
</div>
</Tooltip>
</Tooltip>
</div>
);
}
}
Expand Down

0 comments on commit c813674

Please sign in to comment.