Skip to content

Commit

Permalink
fix(FEC-7555): add live-tag to the tabs order (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv committed Nov 28, 2017
1 parent 902c351 commit 7f06d05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/live-tag/live-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import style from './_live-tag.scss';
import {h} from 'preact';
import {connect} from 'preact-redux';
import BaseComponent from '../base';
import {KeyMap} from "../../utils/key-map";

/**
* mapping state to props
Expand Down Expand Up @@ -73,7 +74,14 @@ class LiveTag extends BaseComponent {
if (props.isDvr && !this.isOnLiveEdge()) tagStyleClass.push(style.nonLivePlayhead);

return (
<div className={tagStyleClass.join(' ')} onClick={() => this.onClick()}>Live</div>
<div tabIndex="0"
className={tagStyleClass.join(' ')}
onClick={() => this.onClick()}
onKeyDown={(e) => {
if (e.keyCode === KeyMap.ENTER) {
this.onClick();
}
}}>Live</div>
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/styles/_shell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
.custom-captions-applied > a,
.form-group-row > a,
.button-save-cvaa,
.slider {
.slider,
.live-tag {
&:focus {
outline: 1px solid #00cbff;
}
Expand Down

0 comments on commit 7f06d05

Please sign in to comment.