Skip to content

feat: syntax tokens for code-snippet inserted and deleted lines#22037

Merged
maradwan26 merged 1 commit into
carbon-design-system:mainfrom
annawen1:feat/syntax-diff-tokens
Apr 16, 2026
Merged

feat: syntax tokens for code-snippet inserted and deleted lines#22037
maradwan26 merged 1 commit into
carbon-design-system:mainfrom
annawen1:feat/syntax-diff-tokens

Conversation

@annawen1

@annawen1 annawen1 commented Apr 15, 2026

Copy link
Copy Markdown
Member

Contributes to carbon-design-system/carbon-ai-chat#943

In the AI Chat, we want to add syntax highlighting for diff changes in the code-snippet. This PR adds the necessary syntax-inserted and syntax-deleted tokens so we can pull those in to use.

Image

Changelog

New

  • Two new tokens for syntax highlighting
  • updated snapshots

Testing / Reviewing

passes ci-checks

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • [ ] Updated documentation and storybook examples
  • [ ] Wrote passing tests that cover this change
  • [ ] Addressed any impact on accessibility (a11y)
  • [ ] Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@annawen1 annawen1 requested review from a team as code owners April 15, 2026 17:30
@netlify

netlify Bot commented Apr 15, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit ac85caf
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69dfcb4432f0230008d7c205
😎 Deploy Preview https://deploy-preview-22037--v11-carbon-web-components.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 project configuration.

@netlify

netlify Bot commented Apr 15, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit ac85caf
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69dfcb44582fc20008243b79
😎 Deploy Preview https://deploy-preview-22037--v11-carbon-react.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 project configuration.

@codecov

codecov Bot commented Apr 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.89%. Comparing base (b43ddc5) to head (ac85caf).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22037      +/-   ##
==========================================
- Coverage   94.91%   94.89%   -0.03%     
==========================================
  Files         539      539              
  Lines       45015    45023       +8     
  Branches     6352     6380      +28     
==========================================
- Hits        42727    42724       -3     
- Misses       2156     2167      +11     
  Partials      132      132              
Flag Coverage Δ
main-packages 89.00% <100.00%> (+<0.01%) ⬆️
web-components 97.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@maradwan26 maradwan26 added this pull request to the merge queue Apr 16, 2026
Merged via the queue into carbon-design-system:main with commit c93243c Apr 16, 2026
39 checks passed
@annawen1 annawen1 deleted the feat/syntax-diff-tokens branch April 17, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants