Skip to content

Commit

Permalink
Remove default black backgrounds
Browse files Browse the repository at this point in the history
More power to the user to style the player themselves
Closes cookpete/react-player#673
  • Loading branch information
albanqoku committed Sep 17, 2019
1 parent c800ede commit 1f23b06
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/players/DailyMotion.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export class DailyMotion extends Component {
const style = {
width: '100%',
height: '100%',
backgroundColor: 'black',
display
}
return (
Expand Down
3 changes: 1 addition & 2 deletions src/players/Facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export class Facebook extends Component {
render () {
const style = {
width: '100%',
height: '100%',
backgroundColor: 'black'
height: '100%'
}
return (
<div
Expand Down
1 change: 0 additions & 1 deletion src/players/Vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export class Vimeo extends Component {
width: '100%',
height: '100%',
overflow: 'hidden',
backgroundColor: 'black',
display
}
return (
Expand Down
1 change: 0 additions & 1 deletion test/players/DailyMotion.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ test('render()', t => {
const style = {
width: '100%',
height: '100%',
backgroundColor: 'black',
display: undefined
}
const wrapper = shallow(<DailyMotion config={TEST_CONFIG} />)
Expand Down
3 changes: 1 addition & 2 deletions test/players/Facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ test('load() when ready', async t => {
test('render()', t => {
const style = {
width: '100%',
height: '100%',
backgroundColor: 'black'
height: '100%'
}
const wrapper = shallow(<Facebook url={TEST_URL} />)
t.true(wrapper.contains(
Expand Down
1 change: 0 additions & 1 deletion test/players/Vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ test('render()', t => {
width: '100%',
height: '100%',
overflow: 'hidden',
backgroundColor: 'black',
display: undefined
}
t.true(wrapper.contains(
Expand Down

0 comments on commit 1f23b06

Please sign in to comment.