Comment

Comment by lelandfe

Random aside. Their code snippet has this comment:

    // popovers have light dismiss which influences our state
And I hadn't heard of that phrase before! Turns out it means "clicking elsewhere closes the thing:"

> "Light dismiss" means that clicking outside of a popover whose `popover` attribute is in the auto state will close the popover.[0]

Like what, say, a `<select>` does when open.

Strikes this dev as a pretty unintuitive way to phrase that. At first I thought it was "light" as in "light DOM," but I guess it's "light" as an antonym of "explicit?" Looks like there was some back and forth on this, and it was even proposed as an attribute: https://github.com/openui/open-ui/issues/834

[0] https://html.spec.whatwg.org/multipage/popover.html#popover-...

parent lelandfe 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton