Skip to content

refactor(core): paint core SCSS icons with the text color - #67412

Open
skjnldsv wants to merge 2 commits into
masterfrom
refactor/core-scss-legacy-icons
Open

skjnldsv wants to merge 2 commits into
masterfrom
refactor/core-scss-legacy-icons

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Core styles still pulled a few icons from the generated icons.css variables (select arrow, legacy app navigation arrow, "more" and settings buttons, v-select checkmark, password toggle). Those only switch between black and white. They now use the icon file as a mask filled with currentColor, and the select arrow is two gradients, so they follow the text color and don't depend on icons.mjs anymore.

I also dropped the whatsnew and toast stylesheets: nothing has loaded them since WhatsNew and OC.Notification were removed.

The disabled + .icon-confirm fade and rules styling the .icon-* classes themselves stay until icons.css goes away, apps still rely on them.

Before After
Light
Dark
RTL

Server doesn't render this legacy markup anymore, so the screenshots use injected sample markup. Only checked in Chromium.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

The legacy WhatsNew popover and OC.Notification toasts were removed
earlier this year, but their stylesheets stayed. Nothing loads them
anymore. The update page no longer renders the detail toggle either.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
Core styles pulled their icons from the generated icons.css variables,
which only switch between black and white. Use the icon as a mask
filled with currentColor instead, and draw the select arrow with two
gradients, so these rules no longer depend on build/icons.mjs.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv requested a review from a team as a code owner December 2, 2026 08:13
@skjnldsv
skjnldsv requested review from kristian-zendato and pringelmann and removed request for a team December 2, 2026 08:13
@skjnldsv skjnldsv added this to the Nextcloud 36 milestone Dec 2, 2026
@skjnldsv skjnldsv self-assigned this Dec 2, 2026

This branch has not been deployed

No deployments
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.

1 participant