Skip to content

feat: dark mode image support - #130

Merged
kelvinmanley merged 3 commits into
mainfrom
PRSDM-11356-update-images
Aug 28, 2026
Merged

feat: dark mode image support#130
kelvinmanley merged 3 commits into
mainfrom
PRSDM-11356-update-images

Conversation

@kelvinmanley

@kelvinmanley kelvinmanley commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

JIRA_TICKET_URL

What does this PR do?

This PR adds dark mode support for the side nav logo by adding an opt-in params.logo_dark to swap the title bar logo when dark mode is active. If this parameter is set in a module, the module can utilise the dark variant logo when dark mode is activated.

Why is this change needed?

This is required for dark mode

How to test & Screenshots

See: https://github.com/SPANDigital/presidium-js-enterprise/pull/1551/

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds opt-in dark-mode support for the title bar brand logo by allowing a separate dark variant to be configured via params.logo_dark.

Changes:

  • Introduces params.logo_dark handling in the title bar brand partial and conditionally renders light/dark logo variants with theme-specific classes.
  • Updates the changelog to document the new feature.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
layouts/partials/title-bar/brand.html Adds optional dark-logo param support and emits markup/classes for light vs dark logo variants.
CHANGELOG.md Documents the new params.logo_dark feature entry.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread layouts/partials/title-bar/brand.html
Comment thread layouts/partials/title-bar/brand.html
@kelvinmanley
kelvinmanley merged commit 547b8ba into main Aug 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants