Skip to content

Commit 41133c1

Browse files
authored
Merge pull request #75 from activeadmin-plugins/release/3.2.0
Release 3.2.0
2 parents bcf69d6 + 13fee75 commit 41133c1

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)