Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jpg619
Copy link
Contributor

@jpg619 jpg619 commented Sep 17, 2025

Fix Accessibility Bug - Improve Syntax Highlighting Colors for Code Blocks

  • File Changes
    code.js - Added string token color mapping to improve syntax highlighting accessibility

  • Summary
    This PR enhances code block syntax highlighting accessibility by adding a specific color (#db1068) for string tokens to improve visual contrast and readability.

BEFORE

image image

AFTER

image image

@jpg619 jpg619 changed the title fix: add missing color mapping for token string in colorMap [Fix Accessibility Bug] Refactor code.js to improve syntax highlighting colors Sep 17, 2025
@jpg619 jpg619 marked this pull request as ready for review September 17, 2025 19:15
@jpg619 jpg619 requested review from leobalter and a team as code owners September 17, 2025 19:15
@jpg619 jpg619 self-assigned this Sep 17, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an accessibility issue by adding a specific color for string tokens in code block syntax highlighting to improve visual contrast and readability.

  • Adds a new color mapping for string tokens using color #db1068

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jpg619 jpg619 requested review from Copilot and removed request for a team and leobalter September 17, 2025 19:22
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jpg619 jpg619 requested a review from wraithgar September 17, 2025 19:23
@wraithgar
Copy link
Member

Not sure the PR title is appropriate here, this is not a refactor.

@jpg619 jpg619 changed the title [Fix Accessibility Bug] Refactor code.js to improve syntax highlighting colors [Fix Accessibility Bug] improve accessibility of syntax highlighting by adding string token color Sep 17, 2025
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