Skip to content

feat(color): add cancellable theme changes - #2283

Merged
markdumay merged 5 commits into
mainfrom
fix/internal-button-tab
Oct 28, 2026
Merged

markdumay merged 5 commits into
mainfrom
fix/internal-button-tab

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Color-mode setters now dispatch a synchronous, cancelable hinode:color-mode:before-change event before updating stored preferences, root theme attributes or selectors. Existing behavior continues when the event is not canceled. The normalized requested preference is available as detail.theme.

Buttons also honor explicit internal new-tab choices, and navbar callers preserve omitted arguments so existing external defaults and cues continue to apply.

Validation: full lint/event/template/strict-image suite, root and multilingual example builds, module verification, and native Chrome/WebKit theme and new-tab controls. Independent finalization review passed, including a partial event-payload mutation that failed in both browsers and passed after exact restoration. Required CI runs on this PR.

Refs #2275, #2280.

markdumay and others added 5 commits October 26, 2026 06:33
Keep internal navigation in the current tab unless tab=true is supplied.
Preserve external defaults and cues, with opener protection for new tabs.

Cover direct buttons and responsive link groups with rendered regressions.

Co-Authored-By: ChatGPT <noreply@openai.com>
Forward the menu's original tab value so only explicit internal choices open
new tabs while external links continue to inherit the configured default.

Exercise navbar buttons, direct buttons, and responsive links under both
external defaults. Check cues on each anchor and remove the inactive GetPage mount.

Refs: #2275

Co-Authored-By: ChatGPT <noreply@openai.com>
Expose the normalized preference before persistence and theme updates so document listeners can
cancel the setter. Cover initialization, system appearance, restored pages, and normal controls.

Refs #2280

Co-authored-by: Codex <noreply@openai.com>
Merge the current module updates into the button and color mode fixes.
@netlify

netlify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit d6fbaa4
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6ae1d9c5a7c501e4bd3a8470
😎 Deploy Preview https://deploy-preview-2283--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@markdumay
markdumay merged commit 3e423a9 into main Oct 28, 2026
17 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.45.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant