What I did today
Here’s the CSS variables I’m talking about:
:rootelement, we add inline styles on the
htmlelement to override them. Or any DOM element. Because it’ll be “found” sooner by CSS, it’ll be used as against the
:rootvariables.A demo is available, as is the source code.
- I also learned of the
datalistproperty, which is really nice and can make your JS codebase a bit more simple and maintainable.
- You can find the root element with
- To my surprise, there’s an OS-native color picker that you can pop up with just
- As echoed by Chris Burnell today and read up by me on Stack Overflow just a couple of days ago,
thisin the context of event listener callbacks. It’s almost become second nature by now. Excited to feel the same about
thisin every context, like, ever! 🤯
Not much progress on ReactJS today either as I had a couple of engagements. One, a screening call with a company, and two, re-doing my home-page to better reflect me as a person. I do feel I need to put a lid on the latter for a while, maybe relegating it to just the weekends. After all, learning is super important right now and the priority. 😊
These are all things I already am aware of, but it’s really interesting to hear someone else explain them to you anyway. It’s a unique experience in that you get perspective on what details to abstract away if you were explaining the same concepts to someone else. Which, honestly, is also a great skill to have.