Repository navigation
Conversation
In dark mode the v3 #bbb read almost like a value; in light mode ActiveAdmin's gray-400/50 was barely readable. #8a929c (4.6:1) and #8f969e (about 3:1) keep EMPTY readable and clearly dimmer than values. Co-Authored-By: Clanker
A table_for scrolled only when it sat right in a panel body; in a tab it ran past the panel and widened the page. Co-Authored-By: Clanker
There was a problem hiding this comment.
🟡 Changes recommended
A moderate active accessibility issue remains: the light-mode EMPTY marker has insufficient contrast for regular text and needs a darker color plus an updated assertion.
1 open issue
What changed in this PR
Improves theme 4 beta styling and regression coverage for readable EMPTY placeholders and horizontally scrollable tables inside tabs.
Changes:
- Adjusts EMPTY colors for light and dark modes.
- Adds horizontal overflow handling for tables within tab panels.
- Adds demo content and browser tests for both behaviors.
| File | Description |
|---|---|
| test/form_look_test.rb | Tests EMPTY color contrast in light and dark modes. |
| test/dummy/app/admin/components_demo.rb | Adds a wide table inside tabs to the demo page. |
| test/components_test.rb | Verifies that tab-contained tables scroll without widening the page. |
| app/tailwind/active_admin_theme.css | Updates EMPTY colors and tab-panel overflow styling. |
Review effort: Lite (adaptive)
| .attributes-table-empty-value { | ||
| color: #8f969e; |
There was a problem hiding this comment.
This is deliberate. EMPTY is a placeholder for a missing value, so it has to read as dimmer than real values. #8f969e is 2.99:1 on white, right at the 3:1 AA level for large text, and keeps EMPTY clearly apart from values (12.4:1). The 4.5:1 alternative, #6b7177 (4.9:1), made EMPTY look like a value. Leaving this open for maintainers to weigh in.
The README and the migration guide pointed to a 3.x branch that exists only on a fork. Theme 3 is 3.3.0 on RubyGems, documented at the v3.3.0 tag. Co-Authored-By: Clanker
Co-Authored-By: Clanker

Fixes found while running theme 4.0.0.beta1 on a production app's staging. This PR collects further findings until it is merged.
EMPTY placeholder in attributes tables
In dark mode, EMPTY was
#bbband read almost like a real value. In light mode, ActiveAdmin'sgray-400/50was barely readable (1.55:1). EMPTY is now dimmer than values but readable in both modes:#8f969e#8a929cWide
table_forin a tabA
table_forscrolled sideways only when it sat directly in a panel body. Insidetabs, a wide table ran past the panel's right edge and widened the page. A tab panel that holds a table now scrolls too. Theme 3 had no such rule because its table cells wrapped.Where to find theme 3
The README now has a short ActiveAdmin 3 versus 4 table: theme 4 from the
v4.0.0.beta1tag, and theme 3 as 3.3.0 from RubyGems with its v3.3.0 README. Theme 3 fixes go to the new3.xbranch, which starts atv3.3.0; the migration guide says so too.Open questions
Batch action confirms use the browser's native dialog in ActiveAdmin 4; theme 3 had an in-page modal. Option A (a theme modal for batch actions only) and option B (a theme modal for every
data-confirm) wait for maintainer feedback.Verification
bundle exec rake testwith stock ActiveAdmin and with the proposed ActiveAdmin hooks. New tests check the EMPTY color and contrast in both modes, and that a 20-column table in a tab scrolls inside the tab without widening the page. The dummy app has a "Table in tabs" panel on the components page.