nextcloud / nextcloud/office

Icons nearly invisible in dark/contrast dark theme on Files page

Open Beginner friendly
#43 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
1
Avg merge
1d 3h
Merged PRs (30d)
10

Description

Problem

File action icons (.files-list__row-action-icon) are nearly invisible when using the Dark or Contrast Dark theme. The inlined SVG paths have hardcoded fill="#000" and style="color:#000000", rendering as near-black on a dark background.

Steps to reproduce

  1. Enable Dark or Contrast Dark theme in Nextcloud settings
  2. Open the Files app
  3. Observe file action icons in the file list are nearly invisible

Root cause

The SVG paths use fill="#000" (a presentation attribute) rather than fill="currentColor". Nextcloud's --color-main-text token adapts correctly to dark/light mode, but the hardcoded fill ignores it.

Suggested fix

.files-list__row-action-icon path {
    fill: var(--color-main-text);
}

CSS rules beat SVG presentation attributes — no !important needed.

Related

  • Euro-Office fork tracking issue: Euro-Office/eurooffice-nextcloud#72
  • Euro-Office fix PR: Euro-Office/eurooffice-nextcloud#73
  • Euro-Office/web-apps#120 — same visual bug for icons inside the editor

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the Files page styles for .files-list__row-action-icon and inspect how its SVG paths are styled. Reproduce the issue with the Dark and Contrast Dark themes, then verify the file action icons are readable while preserving their appearance in light mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.