fix: adopt ep-design 1.4.0 so the ⋯ menu closes on choose and toasts keep the E&P colours

This commit is contained in:
fromme committed 2026-11-13 15:04:29 +01:00
1 parent d283a07b5c
commit 4530d2434b
4 files changed
+9 -7

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
import { Controller } from '@hotwired/stimulus' import { Controller } from '@hotwired/stimulus'
/* /*
* The sidebar as a drawer on small screens: a modal <dialog> (target "dialog"), so focus stays inside * The navigation (sidebar or header tabs) as a drawer on small screens: a modal <dialog> (target
* and Escape closes it. A click on the dimmed page beside it closes it too, and so does widening the * "dialog"), so focus stays inside and Escape closes it. A click on the dimmed page beside it closes it
* window until the sidebar shows (lg). * too, and so does widening the window until the navigation shows (lg).
*/ */
export default class extends Controller { export default class extends Controller {
static targets = ['dialog'] static targets = ['dialog']
+1 -1
View File
@@ -1,5 +1,5 @@
@import "tailwindcss"; @import "tailwindcss";
@import "toastify-js/src/toastify.css"; @import "toastify-js/src/toastify.css" layer(base);
@import "./ep-design.css"; @import "./ep-design.css";
@import "./_base.css" layer(base); @import "./_base.css" layer(base);
@import "./_components.css" layer(components); @import "./_components.css" layer(components);
+4 -2
View File
@@ -5,7 +5,9 @@
* Status colours (green, red, amber) always come with text, never alone. * Status colours (green, red, amber) always come with text, never alone.
* *
* Import after Tailwind: @import "tailwindcss"; @import "./ep-design.css"; @plugin "@tailwindcss/forms"; * Import after Tailwind: @import "tailwindcss"; @import "./ep-design.css"; @plugin "@tailwindcss/forms";
* The toast styles expect toastify-js (@import "toastify-js/src/toastify.css" before this file). * The toast styles expect toastify-js, imported into the base layer before this file:
* @import "toastify-js/src/toastify.css" layer(base); unlayered (or through its own <link>), its
* colours and gradient beat these layered styles whatever their specificity.
*/ */
/* /*
@@ -245,7 +247,7 @@
@apply -rotate-135; @apply -rotate-135;
} }
/* the sidebar as a drawer from the left on small screens (drawer_controller.js) */ /* the navigation (sidebar or header tabs) as a drawer from the left on small screens (drawer_controller.js) */
dialog.drawer { dialog.drawer {
@apply m-0 h-dvh max-h-none w-80 max-w-[calc(100vw-4rem)] bg-page p-0; @apply m-0 h-dvh max-h-none w-80 max-w-[calc(100vw-4rem)] bg-page p-0;
} }
+1 -1
View File
@@ -7,7 +7,7 @@
<div class="relative inline-block" {{ stimulus_controller('menu') }}> <div class="relative inline-block" {{ stimulus_controller('menu') }}>
<button type="button" class="btn-more" aria-haspopup="menu" aria-expanded="false" aria-label="{{ label }}" <button type="button" class="btn-more" aria-haspopup="menu" aria-expanded="false" aria-label="{{ label }}"
{{ stimulus_target('menu', 'button') }} {{ stimulus_action('menu', 'toggle') }}>⋯</button> {{ stimulus_target('menu', 'button') }} {{ stimulus_action('menu', 'toggle') }}>⋯</button>
<div class="menu-panel" role="menu" hidden {{ stimulus_target('menu', 'panel') }} {{ stimulus_action('menu', 'choose') }}> <div class="menu-panel" role="menu" hidden {{ stimulus_target('menu', 'panel') }} {{ stimulus_action('menu', 'choose', 'click') }}>
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</div> </div>