Fix theme toggle inline - #57
Merged
Fivell merged 2 commits intoOct 3, 2026
Merged
Conversation
The switch's li was display: flex, which is block-level. ActiveAdmin lays the utility nav out with inline items, so the switch broke the row and stacked the username, theme switch and logout. Use inline-flex, and make css_check fail if any utility-nav item becomes block-level.
Add and use it in the status-tag mixin.
Fivell
added a commit
to yeti-switch/active_admin_theme
that referenced
this pull request
Oct 3, 2026
Two findings from the Copilot review of this branch, both real. $skinStatusTagTextColor ended up declared twice when this branch rebased onto activeadmin-plugins#57, which had added its own declaration: once beside the status tag fills and once beside the table header colours. Sass keeps the first !default and drops the rest, so the second was dead code that could drift from the live one in silence. Both said #ffffff, so nothing rendered differently — it was waiting to. The README check only walked the documented names, so a new variable could ship with no row in the table and still pass, while the success line claimed the table matched every declaration. It now compares both sets: a declaration with no row fails, and so does a second declaration of the same name. The count comes from the declarations rather than the rows. Checked by adding $skinTotallyUndocumented and a second $skinStatusTagOkColor and watching each fail with its own message.
Fivell
added a commit
to yeti-switch/active_admin_theme
that referenced
this pull request
Oct 3, 2026
Two findings from the Copilot review of this branch, both real. $skinStatusTagTextColor ended up declared twice when this branch rebased onto activeadmin-plugins#57, which had added its own declaration: once beside the status tag fills and once beside the table header colours. Sass keeps the first !default and drops the rest, so the second was dead code that could drift from the live one in silence. Both said #ffffff, so nothing rendered differently — it was waiting to. The README check only walked the documented names, so a new variable could ship with no row in the table and still pass, while the success line claimed the table matched every declaration. It now compares both sets: a declaration with no row fails, and so does a second declaration of the same name. The count comes from the declarations rather than the rows.
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.
No description provided.