Icons nearly invisible in dark/contrast dark theme on Files page
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
- Enable Dark or Contrast Dark theme in Nextcloud settings
- Open the Files app
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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