Skip to content

Commit 13fee75

Browse files
committed
Release 3.2.0
Minor, not major: the variable contract only grows - $skinTitleBarHeight joins it - and nothing that worked against 3.1.1 stops working. Several defaults do look different, and the Upgrading section now spells them out. What moved since 3.1.1: #74 a title-bar dropdown opens under its own button again #73 button_to action items stay on the title bar's row #72 a wigu/all umbrella require; title-bar dropdowns right-align #71 the header, title bar and flash bar are pinned to the viewport and index-table headers stick, with per-table opt-outs #70 date-range filters laid out with flexbox #69 documentation for crisscross highlighting and the Trix editor #68 crisscross cell highlighting for index tables #67 Trix / ActionText editor themed in light and dark #65 --aa-datetimepicker-* bridge variables #64 utility nav with the server clock, theme switch and glyph logout #63 dark-mode interactive states #62 dark styling for select2 and tom-select The npm package moves with it: src/ is regenerated from app/assets by the prepare script, so the Sprockets and bundler consumers ship the same files.
1 parent bcf69d6 commit 13fee75

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,38 @@ editor is on the page.
294294

295295
### Upgrading
296296

297+
#### 3.2.0
298+
299+
The variable contract only grows — `$skinTitleBarHeight` joins it and nothing
300+
that worked against 3.1.1 stops working — but several defaults now look
301+
different, and two of them take layout away from the host app:
302+
303+
* `#header`, `#title_bar` and the flash bar are pinned to the visible viewport,
304+
so they stay put while a table wider than the window scrolls the page
305+
sideways. Apps that pinned those bars with their own stylesheet should drop
306+
those rules: the theme lays the title bar out with flexbox and resets
307+
`#titlebar_right` to `position: static`, and a leftover `position:
308+
absolute/sticky` fights it. Load `wigu/scrollbar_width` to subtract the
309+
scrollbar gutter — see *Pinned bars and sticky table headers*.
310+
* Index-table column headers stick to the viewport top on every ActiveAdmin
311+
index table. One line in your stylesheet opts out app-wide:
312+
`.paginated_collection table.index_table thead tr th { position: static; }`.
313+
* The title bar owns its own metrics now: the record title is 16px, on one line
314+
with an ellipsis, instead of ActiveAdmin's large wrapping heading; action
315+
items are spaced; the band is `$skinTitleBarHeight` (37px) tall, with
316+
`$skinTitleBarButtonPaddingY` / `$skinTitleBarButtonPaddingX` on the buttons.
317+
Title-bar dropdown panels right-align under their own button.
318+
* The utility nav carries the server clock, the theme switch and a logout drawn
319+
as a sign-out glyph rather than the word *Logout*. `ActiveAdminTheme
320+
.add_current_user = false` drops the added current-user item, and
321+
ActiveAdmin's own `config.logout_link_path = nil` drops the logout one.
322+
323+
New and opt-in, nothing to change on upgrade: the Trix / ActionText editor is
324+
themed in both modes, crisscross cell highlighting (`wigu/table_crisscross`),
325+
`--aa-datetimepicker-*` bridge variables for the companion datetimepicker, dark
326+
styling for select2 and tom-select, and `//= require wigu/all` to pull every
327+
shipped script at once.
328+
297329
#### 3.1.0
298330

299331
* Status tag fills are darker, so the label can be white and still clear 4.5:1 —

‎lib/active_admin_theme/version.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ActiveAdminTheme
2-
VERSION = "3.1.1"
2+
VERSION = "3.2.0"
33
end

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@activeadmin-plugins/active_admin_theme",
3-
"version": "3.1.1",
3+
"version": "3.2.0",
44
"description": "Flat design for ActiveAdmin",
55
"main": "src/active_admin_theme.scss",
66
"author": "Igor Fedoronchuk <igor.f@didww.com>",

0 commit comments

Comments
 (0)