leekeh.com
bookseller to senior frontend dev in 3 years 📚
passionate about a11y 🧑💻, better communication in tech 💬 and using the web for good 🌱
Currently working for design system Vitamin Play @ Decathlon
( ⁀ ᗢ ⁀ )~♡
75 posts
247 followers
510 following
Regular Contributor
Active Commenter
comment in response to
post
How have I never heard of <hgroup> before?
comment in response to
post
This is the main thing keeping me on Notion, so exciting to see it's getting there 🤩
comment in response to
post
Alright, somehow I cannot wrap around to how it can infer rest but not key1 and key2, but that's probable a me-problem 😅 The examples you pass are helpful, I guess I just wish it would not be needed to do double bookkeeping.
Thanks anyway for guiding me and I hope you are doing well! 🫶
comment in response to
post
But at the same time the type does resolve properly, the result is typed as string. Anyway maybe my mind is just stubborn on this one ¯\_(ツ)_/¯
comment in response to
post
And why would it not know key1, but it would know the restprops?
comment in response to
post
but if I write key1: key1 as T['key1']` in the return statement, it will resolve it to string. What exactly is the difference?
comment in response to
post
The internet needs more of this
comment in response to
post
Ahah thanks 🫶 It just seems like such a basic thing, blows my mind 🙃
comment in response to
post
Here's an interactive repro: www.typescriptlang.org/play/#code/G...
comment in response to
post
Ads and popups everywhere, it's difficult to figure out what's going on.
A PDF viewer that plays video adds every time you open it.
A free app pushing the premium version.
When you search for a specific app in the Play store the first result will be a promoted app that you didn't search for.
comment in response to
post
The button implementation is quite elegant but does require some custom logic in order to set up the right states (see www.w3.org/WAI/ARIA/apg...). But using a checkbox just works out of the box ( ⁀ ᗢ ⁀ ) And besides the role you don't need to add any attributes.
comment in response to
post
When I was researching different implementations of toggles, I found that most component libraries either
- fabricate their own element with various `span` and connect to a hidden `input` element
- use a `button` with `role=switch`
- render a <label><input/></label> without supplying any label text
comment in response to
post
Features:
- `role="switch"` for better accessibility hints
- slide animation
- hidden expanded clickarea to meet recommended target size
- material-esque hover circle
- icon on the handle/thumb when the switch is in a "checked" state
comment in response to
post
I feel like people mainly have a problem with people updating state from an effect ran that was triggered by another state change. This is basically just an onMount.
comment in response to
post
We as developers should be refusing this shit. People like to complain about EU laws but they really highlight exactly how much our personal data is prayed upon. I seriously don't get it, there are plenty of ways to do tracking that respect privacy, and plenty of tools that offer it. I'm tired.
comment in response to
post
I'm just trying to access some song lyrics ?!?!
comment in response to
post
Ohh I didn't know about that, thanks! That's a shame though, I thought lots of devs loved it
comment in response to
post
Am thinking I will start with just password login, magic link (using Resend) and I guess I must implement something for users to reset their password. And I think I will use D1 for storage.
comment in response to
post
You recommend using Lucia over the built-in middleware of Hono?
comment in response to
post
Where can I sign up? Is there a mailing list? 🙏
comment in response to
post
Jfc this is the final boss of processed food
comment in response to
post
Your book was one of the first things recommended to me when I first joined a design system team. I put it to practice every day. 💙
comment in response to
post
comment in response to
post
Do you eat them on their own? Curious what this meal looks like