Repository navigation
fix(docs): keep the theme switch layout after a click (#518) - #520
Merged
Merged
Conversation
The brand theme's v0.3.1 keeps the header theme switch a flex row after a click: MkDocs Material's `.md-option:checked + label:not([hidden])` rule set it to `display: block`, which shrank the dot to a thin line and moved the label to the top of the button (qubernetic/brand#15). Between v0.1.0 and v0.3.1 that fix is the only change to the theme files under mkdocs/material; v0.2.0 and v0.3.0 added herdr and Konsole themes, which the site does not use. Refs #518
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
q-soriarty
marked this pull request as ready for review
November 18, 2026 09:23
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The theme switch in the docs header lost its dot and its centred label after a click. The cause was in the brand theme: MkDocs Material's
.md-option:checked + label:not([hidden]) { display: block }(specificity 0,3,1) beat the theme's.q-theme:not([hidden]) { display: inline-flex }(0,2,0) once the visible label followed the checked input. Brand v0.3.1 adds a (0,4,0) selector for the same layout (qubernetic/brand#15, qubernetic/brand#16).This PR moves the
docs/site/brandsubmodule from v0.1.0 to v0.3.1 and adds a changelog entry. Between the two tags, that fix is the only change undermkdocs/material; v0.2.0 and v0.3.0 added the herdr and Konsole themes, which the site does not use.The
indigo/custompalette difference noted in the issue is not related and is left as it is.Test plan
just docsandjust docs-build(mkdocs build --strict) pass locallyqubernetic.csscontains.md-option:checked + .q-theme:not([hidden])display: flexand the dot stays 10x10 px; a real mouse click shows the dot and the centred labelmain,docs.ymldeploys the site and the switch keeps its layout on https://qubernetic.github.io/copia-cli/manual/Closes #518