Skip to content

Commit ab42083

Browse files
committed
Refactor notice flash to use tag.div with options hash
1 parent df59d90 commit ab42083

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [Unreleased]
2+
- Refactor notice flash to use tag.div in application.html.erb
3+
14
## 2.0.0 - 2025-08-04
25
- Add debouncedSubmit to form_controller
36
- Add minimal Trix editor variant without file and history tools

lib/generators/css_zero/install/templates/app/views/layouts/application.html.erb

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

3939
<main id="main">
4040
<%% if notice.present? %>
41-
<div popover class="flash" style="--flash-position: 5rem;" data-controller="element-removal" data-action="animationend->element-removal#remove" role="alert"><%%= notice %></div>
41+
<%%= tag.div notice, popover: "manual", class: "flash", style: "--flash-position: 5rem", data: { controller: "element-removal", action: "animationend->element-removal#remove", role: "alert" } %>
4242
<%% end %>
4343
<div class="container">
4444
<%%= yield %>

0 commit comments

Comments
 (0)