BTW the toggle solution (expanding content) is good.
Replacing JavaScript with Just HTML
31–40 of 296 posts
Re: Replacing JavaScript with Just HTML
#32Re: Replacing JavaScript with Just HTML
#33The details / summary thing absolutely kills me. There’s basically nothing you can’t do with them. Hiding and replacing markers is easy. But every component library just pretends they don’t exist. It even saves you the effort of all the aria control and expanded tags: these tags don’t need them.
Re: Replacing JavaScript with Just HTML
#34Most of this is great, except for the input/datalist bits, which are not sufficiently functional to be used in any real scenario. Users expect these interfaces to be tolerant of misspellings, optional sub text under each option, mobile ux niceties, etc -- and so everyone builds this with js...
Re: Replacing JavaScript with Just HTML
#35The details / summary thing absolutely kills me. There’s basically nothing you can’t do with them. Hiding and replacing markers is easy. But every component library just pretends they don’t exist. It even saves you the effort of all the aria control and expanded tags: these tags don’t need them.
You can't actually control the open state properly from markup (the `open` attribute only sets the default state), which is why I haven't bothered with them.
Re: Replacing JavaScript with Just HTML
#36The details / summary thing absolutely kills me. There’s basically nothing you can’t do with them. Hiding and replacing markers is easy. But every component library just pretends they don’t exist. It even saves you the effort of all the aria control and expanded tags: these tags don’t need them.
You can't actually control the open state properly from markup (the `open` attribute only sets the default state), which is why I haven't bothered with them.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetails...
Re: Replacing JavaScript with Just HTML
#37The details / summary thing absolutely kills me. There’s basically nothing you can’t do with them. Hiding and replacing markers is easy. But every component library just pretends they don’t exist. It even saves you the effort of all the aria control and expanded tags: these tags don’t need them.
Do they work well for when you want to preview text? Like show the first 100 characters of a paragraph and then click to expand?
Re: Replacing JavaScript with Just HTML
#38Re: Replacing JavaScript with Just HTML
#39The details / summary thing absolutely kills me. There’s basically nothing you can’t do with them. Hiding and replacing markers is easy. But every component library just pretends they don’t exist. It even saves you the effort of all the aria control and expanded tags: these tags don’t need them.
Do they work well for when you want to preview text? Like show the first 100 characters of a paragraph and then click to expand?
Re: Replacing JavaScript with Just HTML
#40Gimme a dark/light mode switch. CSS is allowed.