feat: adopt ep-design 1.4.0 in admin
This commit is contained in:
1 parent
21b00e3bd6
commit
fd3d88209c
4 files changed
+20
-10
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']
|
||||
|
||||
Reference in new issue
Block a user