Skip to content

Commit

Permalink
fix color of custom play icon
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Aug 29, 2024
1 parent ce7bd36 commit 9beb0d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {VideoPlayer} from '.'
import {Stack} from '../Stack'
import {Button} from '../Button'
import {useVideo} from './hooks'
import styles from './VideoPlayer.stories.module.css'

export default {
title: 'Components/VideoPlayer/Features',
Expand Down Expand Up @@ -98,7 +99,7 @@ export const ControlledProgrammatically = () => {
}

export const CustomPlayIcon = () => (
<VideoPlayer title="GitHub media player" playIcon={() => <PlayIcon size={96} />}>
<VideoPlayer title="GitHub media player" playIcon={() => <PlayIcon size={96} className={styles.customPlayIcon} />}>
<VideoPlayer.Source src="https://primer.github.io/brand/assets/example.mp4" type="video/mp4" />
<VideoPlayer.Track src="https://primer.github.io/brand/assets/example.vtt" />
</VideoPlayer>
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/VideoPlayer/VideoPlayer.stories.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.customPlayIcon {
color: white;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare const styles: {
readonly "customPlayIcon": string;
};
export = styles;

0 comments on commit 9beb0d8

Please sign in to comment.