Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Contrast (Minimum) (WCAG SC 1.4.3) #817

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsi
Copy link
Collaborator

@tsi tsi commented Feb 12, 2025

This PR fixes a few text color-contrast issues

Before:
image

After:
image

@tsi tsi requested a review from a team as a code owner February 12, 2025 14:23
Copy link

netlify bot commented Feb 12, 2025

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 0ce8c55
🔍 Latest deploy log https://app.netlify.com/sites/cld-video-player/deploys/67acaef6c5f70e00087073b0
😎 Deploy Preview https://deploy-preview-817--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tsi tsi self-assigned this Feb 12, 2025
Copy link

netlify bot commented Feb 12, 2025

Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit 0ce8c55
🔍 Latest deploy log https://app.netlify.com/sites/cld-vp-esm-pages/deploys/67acaef671259500087b551d
😎 Deploy Preview https://deploy-preview-817--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -108,8 +108,9 @@ export const overrideDefaultVideojsComponents = () => {
const Player = videojs.getComponent('Player');
let children = Player.prototype.options_.children;

// Add TitleBar as default
children.push('titleBar');
if (children.indexOf('titleBar') === -1) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need this "if" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was playing with colors opacity, and got weird results visually, this is how I found out the title is being rendered twice :)
This if prevents that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShayLevi could this be what's failing the test here? I couldn't find any reason why it would fail, the videos obviously play fine in the deploy preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants