I've been avoiding dynamic content and Javascript in Tanzawa for as long as possible. Today I spent installing webpack and configuring my first stimulus controller. The controller is quite simple: open a details tag on hover and close it when not.

I think it still needs a little fine-tuning with the display timing. Seeing the toggle when a user goes to click New Status is jarring. Likewise closing immediately when no longer hovering is a source of frustration. So adding a shortย  delay before performing either action would likely make it a bit easier to use.

The other side-benefit of starting to use stimulus is that it's helping me break up my templates into more reusable and logical components.

Toggling the "New Post" menu
Interactions
4