Skip to content

Fix theme toggle inline - #57

Merged
Fivell merged 2 commits into
activeadmin-plugins:masterfrom
yeti-switch:fix-theme-toggle-inline
Oct 3, 2026
Merged

Fivell merged 2 commits into
activeadmin-plugins:masterfrom
yeti-switch:fix-theme-toggle-inline

Conversation

@dmitry-sinina

Copy link
Copy Markdown
Contributor

No description provided.

  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.
@Fivell
Fivell merged commit 2555059 into activeadmin-plugins:master Oct 3, 2026
2 checks passed
@Fivell
Fivell deleted the fix-theme-toggle-inline branch October 3, 2026 14:36
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.
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.

2 participants