Comment

Comment by goldenkey

The filters are a collection of the same type of things. Therefore its more akin to filterAttr = filterEnumVal[autumn,auburn,sunnydale,cheezit,etc..]

Instead of polluting the CSS namespace, it's much more apt to use a data-instafilter="[val]" property.

parent goldenkey 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton