Skip to content

Commit

Permalink
fix: Quality selector bg issue in light mode (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Munadil16 authored Sep 23, 2024
1 parent 169c5c4 commit 13f7207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@
}
.vjs-quality-selector .vjs-custom-dropup-menu li {
padding: 0.5rem 1rem;
color: #fff;
}
.vjs-quality-selector .vjs-custom-dropup-menu li:hover {
background: #444;
border-radius: inherit;
}

/* Custom Tooltip Styling */
Expand Down
6 changes: 3 additions & 3 deletions src/components/QualitySelectorControllBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class QualitySelectorControllBar extends videojs.getComponent('Button') {

dropUpMenu.innerHTML = `
<ul class="bg-white dark:bg-gray-800 shadow-lg rounded-md mt-1">
<li class="px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer text-black dark:text-white" data-quality="1080"">1080p</li>
<li class="px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer text-black dark:text-white" data-quality="720"">720p</li>
<li class="px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer text-black dark:text-white" data-quality="360"">360p</li>
<li class="px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer text-black dark:text-white" data-quality="1080">1080p</li>
<li class="px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer text-black dark:text-white" data-quality="720">720p</li>
<li class="px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer text-black dark:text-white" data-quality="360">360p</li>
</ul>
`;

Expand Down

0 comments on commit 13f7207

Please sign in to comment.