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:
1 parent
d283a07b5c
commit
4530d2434b
4 files changed
+9
-7
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import { Controller } from '@hotwired/stimulus'
|
||||
|
||||
/*
|
||||
* The sidebar as a drawer on small screens: a modal <dialog> (target "dialog"), so focus stays inside
|
||||
* and Escape closes it. A click on the dimmed page beside it closes it too, and so does widening the
|
||||
* window until the sidebar shows (lg).
|
||||
* The navigation (sidebar or header tabs) as a drawer on small screens: a modal <dialog> (target
|
||||
* "dialog"), so focus stays inside and Escape closes it. A click on the dimmed page beside it closes it
|
||||
* too, and so does widening the window until the navigation shows (lg).
|
||||
*/
|
||||
export default class extends Controller {
|
||||
static targets = ['dialog']
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@import "tailwindcss";
|
||||
@import "toastify-js/src/toastify.css";
|
||||
@import "toastify-js/src/toastify.css" layer(base);
|
||||
@import "./ep-design.css";
|
||||
@import "./_base.css" layer(base);
|
||||
@import "./_components.css" layer(components);
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
* Status colours (green, red, amber) always come with text, never alone.
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
@apply m-0 h-dvh max-h-none w-80 max-w-[calc(100vw-4rem)] bg-page p-0;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="relative inline-block" {{ stimulus_controller('menu') }}>
|
||||
<button type="button" class="btn-more" aria-haspopup="menu" aria-expanded="false" aria-label="{{ label }}"
|
||||
{{ 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 %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user