Skip to content

Commit b613feb

Browse files
0.16.0
1 parent 07fbe31 commit b613feb

5 files changed

Lines changed: 35 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to this project will be documented in this file. This project follows [Semantic Versioning](https://semver.org/).
44

5+
## [0.16.0] - 2026-05-16
6+
7+
### Added
8+
9+
- `l_ui_modal` helper with external-trigger support for declaratively rendering modal dialogs
10+
- `l-ui-header--contained` modifier and a yield slot for header links
11+
- `submit:` option on `l_ui_form` to override the submit button text (defaults to "Create" for new records, "Save" for persisted)
12+
13+
### Changed
14+
15+
- Header links now left-aligned
16+
- Navigation container right border restored at `md` and above; panel container left border restored
17+
- Modal backdrop now tinted in addition to the existing blur (foreground at 25% in light mode, background at 60% in dark mode)
18+
- Active navigation items now round on all four corners (`rounded-sm`) rather than the left only
19+
- Panel close button now uses `l-ui-button--primary` instead of `l-ui-button--outline`
20+
- Icons inside `l-ui-button--primary` no longer invert in dark mode, so they remain visible against the inverted-accent background
21+
522
## [0.15.0] - 2026-05-11
623

724
### Breaking

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
layered-ui-rails (0.15.0)
4+
layered-ui-rails (0.16.0)
55
rails (~> 8.0)
66
tailwindcss-rails (~> 4.0)
77

app/assets/tailwind/layered/ui/styles.css

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
@apply overflow-x-auto
362362
my-3 p-3
363363
bg-surface
364-
rounded-md;
364+
rounded-sm;
365365
}
366366

367367
.l-ui-markdown pre code {
@@ -581,6 +581,10 @@
581581
@apply dark:invert;
582582
}
583583

584+
.l-ui-button--primary .l-ui-icon {
585+
@apply dark:invert-0;
586+
}
587+
584588
.l-ui-icon--xs {
585589
@apply w-4 h-4;
586590
}
@@ -651,7 +655,7 @@
651655
w-full min-h-[40px]
652656
gap-3 px-3
653657
text-sm font-medium text-foreground-muted
654-
rounded-l-sm
658+
rounded-sm
655659
focus-ring
656660
transition-colors;
657661
}
@@ -1541,12 +1545,13 @@ pre.l-ui-surface {
15411545
}
15421546

15431547
.l-ui-panel__header {
1544-
@apply flex flex-col;
1548+
@apply flex flex-col
1549+
border-b border-border;
15451550
}
15461551

15471552
.l-ui-panel__header-content {
15481553
@apply flex items-center
1549-
p-4 pb-0;
1554+
p-4 py-3;
15501555
}
15511556

15521557
.l-ui-panel__header-buttons {
@@ -1662,7 +1667,7 @@ pre.l-ui-surface {
16621667
p-4 gap-4
16631668
text-foreground
16641669
bg-surface
1665-
rounded-md;
1670+
rounded-sm;
16661671
}
16671672

16681673
.l-ui-message--sent .l-ui-message__bubble {
@@ -1813,6 +1818,11 @@ pre.l-ui-surface {
18131818

18141819
.l-ui-modal::backdrop {
18151820
@apply backdrop-blur-sm;
1821+
background-color: color-mix(in oklch, var(--foreground) 25%, transparent);
1822+
}
1823+
1824+
.dark .l-ui-modal::backdrop {
1825+
background-color: color-mix(in oklch, var(--background) 60%, transparent);
18161826
}
18171827

18181828
.l-ui-modal__header {

app/views/layouts/layered_ui/_panel.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
<div class="l-ui-panel__header-actions">
3737
<button type="button"
38-
class="l-ui-button l-ui-button--outline l-ui-button--icon"
38+
class="l-ui-button l-ui-button--primary l-ui-button--icon"
3939
aria-label="Hide panel"
4040
aria-controls="panel"
4141
title="Toggle panel (Ctrl+i / ⌘i)"

lib/layered/ui/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Layered
22
module Ui
3-
VERSION = "0.15.0"
3+
VERSION = "0.16.0"
44
end
55
end

0 commit comments

Comments
 (0)