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

Luminosity ratio of the 'use device code' text is less than required ratio 4.5:1 present under 'Run script' tab. #4758

Open
1 of 2 tasks
msftedad opened this issue Nov 20, 2024 · 0 comments

Comments

@msftedad
Copy link

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

Monaco Editor

Monaco Editor Playground Code

const value = /* set from `myEditor.getModel()`: */ `function hello() {
	az login --use-device-code
}`;

// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
	value: "az login --use-device-code",
	language: "shell",
	automaticLayout: true,
});
<div id="container" style="height: 100%"></div>

Reproduction Steps

  1. Open link: Monaco Editor
  2. Monaco Editor page gets displayed.
  3. Open Accessibility insights for windows-color contrast tool.
  4. Select Foreground and Background color of the 'use device code' text using color picker.
  5. Verify whether Luminosity ratio of the "use device code" text present under 'Run script' tab which is less than required ratio of 4.5:1 or not.

Actual (Problematic) Behavior

Luminosity ratio of the "use device code" text present under 'Run script' tab is 3.996:1 which is less than required ratio of 4.5:1 in Windows.

Image

Expected Behavior

Luminosity ratio of placeholder "use device code" text should be greater than or equal to 4.5:1 in Windows.

Additional Context

Test Environment:
OS: Windows 11 Version 24H2(OS Build 26120.1542)
Browser: Edge Browser 129.0.2792.31
Tools Used: Accessibility insights for windows-color contrast tool.

User Impact:
Low vision users will not be able to read and access the information provided if luminosity ratio for text is not meeting required ratio of 4.5:1.

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

No branches or pull requests

1 participant