Skip to content

fix(core): scope public share theme filter to the download icon#61648

Open
pringelmann wants to merge 1 commit into
masterfrom
fix/public-page-menu-global-filter-scope
Open

fix(core): scope public share theme filter to the download icon#61648
pringelmann wants to merge 1 commit into
masterfrom
fix/public-page-menu-global-filter-scope

Conversation

@pringelmann

@pringelmann pringelmann commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

#59175 added a global + class selector to scope the download-icon color filter to the explicit light/dark theme. Vue's scoped-style compiler drops everything after :global(...). Since data-themes is set on <body>, the filter inverted the entire public share page whenever a theme was enforced. Moving the descendant inside the parens keeps the full selector and limits the filter to the icon.

Before:

before-public-share-inverted

After:

after-public-share-fixed

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Screenshots before/after for front-end changes
  • Documentation (manuals or wiki) has been updated or is not required
  • Backports requested where applicable (ex: critical bugfixes)
  • Labels added where applicable (ex: bug/enhancement, 3. to review, feature component)
  • Milestone added for target branch/version (ex: 32.x for stable32)
@pringelmann pringelmann added this to the Nextcloud 35 milestone Jun 29, 2026
@pringelmann pringelmann self-assigned this Jun 29, 2026
@pringelmann pringelmann requested a review from a team as a code owner June 29, 2026 10:56
@pringelmann pringelmann added bug design Design, UI, UX, etc. labels Jun 29, 2026
@pringelmann pringelmann requested review from nfebe and susnux and removed request for a team June 29, 2026 10:56
@pringelmann pringelmann added the 3. to review Waiting for reviews label Jun 29, 2026
@pringelmann pringelmann requested a review from sorbaugh June 29, 2026 10:56
@pringelmann pringelmann force-pushed the fix/public-page-menu-global-filter-scope branch from 8f7cfb6 to c7e6895 Compare June 29, 2026 10:56
@pringelmann

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@pringelmann

Copy link
Copy Markdown
Contributor Author

/backport to stable33

@pringelmann

Copy link
Copy Markdown
Contributor Author

/backport to stable32

@max-nextcloud

Copy link
Copy Markdown
Contributor

I stopped the backports of the first PR to prevent a regression. So the backports here will not be so clean. Not sure how best to proceed. I'm happy to unblock the other backports if that helps.

Comment thread core/src/views/PublicPageMenu.vue
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann force-pushed the fix/public-page-menu-global-filter-scope branch from c7e6895 to b68dd67 Compare June 29, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants