Steve Fulghum
I'm excited to be launching a tool today that I've been tinkering on for a while now. My daughter is learning to read, and I thought a tool to build word searches for her would be a fun build. It was a blast. Check it out at beta.worksheet.tools/wordsearch/v1! #webdev #css #angular #wordnerds
Steve Fulghum reposted
Just noticed on chromestatus that the Observable API is coming to v135. chromestatus.com/feature/5154... I liked using RxJS in the past, but always felt like I needed to think inside out and backwards when using subscriptions. It will be neat to see how this fits into the platform. #webdev
Coming up on four years since CSS-Tricks published my article on the CSS Paint API. css-tricks.com/simulating-d... I'm disappointed that CSS Houdini never took off as I thought it might in 2020, but glad that the Properties and Values API and Typed OM are still slowly working their way in. #css
Gave style queries a try with a component I’m updating. I needed to toggle some styles in its child, and rather than add a selector in the parent, thought it would be fun to key off of a flag set on the container. Here’s an example: codepen.io/steve_fulghu... #CSS
Once I got it working, it felt a little roundabout and verbose; why go through the trouble of setting up a flag and wire the query in the child? A basic selector in the parent could handle this easily (and quickly). But… I still kinda liked the pattern.
It makes the child component the arbiter of its own styling. All it needs to do is watch for a flag on the parent. And the parent doesn’t need to clutter its own stylesheet with gnarly selectors for its children. It’s a neat way to decouple the two, but not necessarily the best for all situations.
You are up to date.