Skip to content

Commit

Permalink
fix:style, add size prop as PlayerItemOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
1t1e1 committed Jan 22, 2023
1 parent 457b28b commit 104fa55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Player/PlayerItemOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const PlayerItemButtons = (props: Props) => {
<PlaySpeed
ariaDescription={t('Playback speed')}
onChange={(newSpeed) => playerSetPlaybackSpeedAndCookies(newSpeed, cookies, setCookie)}
size='small'
playSpeed={playSpeed}
/>
{!isEmbed && (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Player/options/PlaySpeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type Props = {
children?: any
}

export const PlaySpeed = ({ ariaDescription, ariaLabel, ariaPressed, className, onChange, playSpeed }: Props) => {
const wrapperClass = classnames(className, 'player-option-button')
export const PlaySpeed = ({ ariaDescription, ariaLabel, ariaPressed, className, onChange, playSpeed, size }: Props) => {
const wrapperClass = classnames(className, 'player-option-button', size)

const DropdownOptions = PV.Player.speedOptions

Expand Down

0 comments on commit 104fa55

Please sign in to comment.