diff --git a/src/routes/Player/ControlBar/ControlBar.js b/src/routes/Player/ControlBar/ControlBar.js index f24539088..8c0f83f81 100644 --- a/src/routes/Player/ControlBar/ControlBar.js +++ b/src/routes/Player/ControlBar/ControlBar.js @@ -9,8 +9,8 @@ import VolumeBar from './VolumeBar'; import SubtitlesPicker from './SubtitlesPicker'; import styles from './styles'; -const ControlBarButton = React.forwardRef(({ icon, active, onClick }, ref) => ( -
+const ControlBarButton = React.forwardRef(({ icon, active, disabled, onClick }, ref) => ( +
)); @@ -109,15 +109,12 @@ class ControlBar extends Component { } renderSubtitlesButton() { - if (this.props.subtitleTracks.length === 0) { - return null; - } - return ( diff --git a/src/routes/Player/ControlBar/styles.less b/src/routes/Player/ControlBar/styles.less index 964d9c341..7216d6dc0 100644 --- a/src/routes/Player/ControlBar/styles.less +++ b/src/routes/Player/ControlBar/styles.less @@ -41,7 +41,15 @@ } } - &:hover { + &:global(.disabled) { + cursor: default; + + .icon { + fill: var(--color-surfacedark); + } + } + + &:hover:not(:global(.disabled)) { .icon { fill: var(--color-surfacelighter); }