Elektrine lite

← Feed

@spartanatreyu@mastodon.social

Post #2019170

2026-05-05 07:03 UTC

@nickchomey @jimniels Things like datastar / livewire / etc... are always the wrong solution to the wrong problem. They don't simplify things, they hide complexity behind magic (even more hidden complexity). Don't couple your user's UI to schrodinger's server connection to create a more brittle ``, just use the `` instead. But since this is a menu, you **should** be using a `` and progressively enhance with `aria-expanded`. You are looking at accessibility too right?

Replies (1)

  • @nickchomey@mastodon.social 2026-05-05 11:30

    @spartanatreyu I think you're quite mistaken about what datastar actually is... what server coupling are you talking about...? I was suggesting just adding something like data-on:click="!$navToggle" to the nav button and data-show="$navToggle" to the nav parent element, which could be/include any of the html features you just described. No network request (let alone full page nav and history games!) required. Toggling aria-expanded would be similarly simple and js-free

    Open ##2019171