3 ms·
Couple items. - input type="checkbox" - It would be nice if this wasn't so janky to have a different look / function to your checkbox. Like some secondary typ
by araes 3y ago
Couple items.
- input type="checkbox" - It would be nice if this wasn't so janky to have a different look / function to your checkbox. Like some secondary type you could just apply, such as: subtype="toggle" or subtype="tristate" or subtype="cycle" Its weird you have to hide all the normal elements and then intercept all their functionality.
- HTML "dialog" - I like the element, because of "dialog::backdrop", since applying effects to the background for a dialog helps with UI focus. "backdrop-filter: blur(4px)" is also pretty cool.
It would also be nice if it "actually" behaved like a div. Tried implementing it on a project [1] with UI popups, and found out it displays different for show() and showModal() [kinda weird], and also has a massive hidden margin.
Apparently "backdrop-filter" can be implemented on normal divs though, so gonna try that approach.
[1] http://forsako.rf.gd/AmericanCities/LibOfCongressGame.html http://forsako.rf.gd/AmericanCities/LibOfCongressGame.html