Skip to content

Commit

Permalink
Improve controls rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
dashdashzako committed Jun 20, 2019
1 parent c60899b commit b6b899b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/components/buttons/VolumeControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import VolumeSlider from '../volume-slider';
import MuteButton from './mute';

const StyledDiv = styled.div`
display: inline-block;
height: 100%;
display: flex;
`;

function VolumeControl() {
Expand Down
7 changes: 3 additions & 4 deletions src/components/rating/RatingSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ interface IState {
interface IRatingSlider extends IProps, IMapDispatch, WithTranslation {}

const Slider = styled.div`
border: 2px solid transparent;
display: flex;
&:not([aria-disabled='true']):not([disabled]):not([aria-hidden='true']) {
cursor: pointer;
}
&:focus:not([data-focus-visible-added]),
&[data-focus-visible-added] {
border-color: ${(props) => props.theme.actionBg};
outline: none;
outline: solid 2px ${(props) => props.theme.actionBg};
}
svg {
Expand All @@ -54,7 +53,7 @@ const Slider = styled.div`
`;

class RatingSlider extends Component<IRatingSlider, IState> {
state = {
readonly state = {
expectedRating: 0,
isHovering: false
};
Expand Down

0 comments on commit b6b899b

Please sign in to comment.