fix video resolution menu colors

This commit is contained in:
lamacchinadesiderante 2024-04-25 19:56:38 +02:00
parent 775cca3475
commit 59dbdc1bdc
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,9 @@
.container {
li {
color: white !important
}
li:not(.vjs-selected) span {
color: var(--primary) !important;
}
}

View File

@ -6,6 +6,8 @@ import videojs from 'video.js';
import 'video.js/dist/video-js.css';
import style from './VideoJS.module.scss'
export const VideoJS = (props: { options: any; onReady: any; }) => {
const videoRef = React.useRef(null);
const playerRef = React.useRef(null);
@ -56,7 +58,7 @@ export const VideoJS = (props: { options: any; onReady: any; }) => {
}, [playerRef]);
return (
<div data-vjs-player>
<div className={style.container} data-vjs-player>
<div ref={videoRef} />
</div>
);