Skip to content

Keep core's Marketplace card style off the API Reference cards, and fix their dark mode (5.x) - #77

Merged
snake14 merged 1 commit into
5.x-devfrom
apiref-scoped-card-styles-5x
Oct 5, 2026
Merged

snake14 merged 1 commit into
5.x-devfrom
apiref-scoped-card-styles-5x

Conversation

@snake14

@snake14 snake14 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

Backport of #75 to Matomo 5. The plugin cards on the API Reference page no longer pick up the Marketplace's card style (extra padding, pointer cursor, hover shadow), and in dark mode the API method panels and their parameter inputs now use dark colours instead of staying light.

The dark-mode styling only applies on Matomo 5.10 and later, where dark mode exists; on older Matomo 5 releases the page looks as before. #75's two dark-mode screenshot tests are not included, because the Matomo 5 UI test browser cannot open an API method panel.

Issue No

Related to #75

Steps to Replicate the Issue

  1. On Matomo 5 with dark mode enabled, open Administration → Platform → API and expand a plugin's API method.
  2. Expected: the plugin cards match the rest of the page and the method panel is dark.
  3. Actual: the cards show the Marketplace's card style and the method panel and inputs stay light.

Checklist

  • [✔] Tested locally or on demo2/demo3?
  • [✖] New test case added/updated?
  • [NA] Are all newly added texts included via translation?
  • [NA] Are text sanitized properly? (Eg use of v-text v/s v-html for vue)
  • [✔] Version bumped?
  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules
  • [NA] Documentation updated?

…cluding in dark mode

Backport of #75 without its dark-mode UI specs: 5.x's Chromium 90 cannot open a method panel (swagger-ui needs Array.prototype.at).
@snake14 snake14 added the Needs Review For pull requests that need a code review. label Oct 5, 2026
@snake14
snake14 requested a review from a team October 5, 2026 21:37
@snake14
snake14 merged commit 7a79759 into 5.x-dev Oct 5, 2026
17 of 19 checks passed
@snake14
snake14 deleted the apiref-scoped-card-styles-5x branch October 5, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review For pull requests that need a code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants