# Bug OP-17890 - Code highlighting is broken in dark mode

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-17890

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system, Modules and project features / Text editor, Frontend components and Primer design system / Dark/high contrast mode |
| Target versions | 18.0.0 |
| Observed in versions | 16.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.4.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Tom Hykel |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Switch to dark mode, look at the code example below:
    

### What is the buggy behavior?

*   Bad contrast, parts are unreadable, especially the dark blue
    

### What is the expected behavior?

1.  Readable highlighted code
    

###   

```html
@for (action of floatingActions; track action) {
  @if (!!action.href) {
    <a
      class="spot-link spot-link_octicon"
      [title]="action.title"
      [href]="action.href.url"
      [target]="action.href.target"
    >
      <ng-container
        [ngTemplateOutlet]="floatingAction"
        [ngTemplateOutletContext]="{icon:action.iconClass}"
      ></ng-container>
    </a>
  } @else if (!!action.action) {
    <button
      class="spot-link spot-link_octicon"
      [title]="action.title"
      (click)="action.action()"
    >
      <ng-container
        [ngTemplateOutlet]="floatingAction"
        [ngTemplateOutletContext]="{icon:action.iconClass}"
      ></ng-container>
    </buttonx>
  }
}
```
