Aman Singh retweeted
:has() + container queries = the component-based logical styling we've always dreamed of 😍
In this demo:
🖼 If the card has an image: make the font smaller & at < 400px wide, stack it
✨ If no image: bigger font, no stacking
codepen.io/una/pen/oNpoqGp
⚠️ Need flags on in Canary
Aman Singh retweeted
Do not use aria-hidden on content that can be focusable (including tabindex=-1)
But tbh, think really hard about using aria-hidden in general. Why are you specifically trying to hide visible content from AT users?
Sometimes it is necessary. Many times it is incorrectly used.
Aman Singh retweeted
🧪 Use CSS numeric factory functions instead of string concatenation to set style unit values.
developer.mozilla.org/en-US/…
Aman Singh retweeted
Personal take: a lot of things would suck less if design systems and JS frameworks weren’t so tightly coupled.
Aman Singh retweeted
The new React docs are out!
Well-written and practical, complete with interactive examples, diagrams, and more. Plus, they teach Hooks first.
Give them a read and provide feedback: beta.reactjs.org
Aman Singh retweeted
Safari now supports `enterkeyhint`. 👏
I always like it when the enter key gives me more context. 👇
🔗 Spec: html.spec.whatwg.org/multipa…
#devsheets
Aman Singh retweeted
#1: Know the 8 ways to handle state, and when to consider each.
Aman Singh retweeted
Create image carousel using 2 lines of CSS. 🚀📷
🖇 codepen.io/prathkum/pen/bGBO…
Aman Singh retweeted
Clever! Love this #CSS tip 👇🏻
Aman Singh retweeted
The Big Gotcha With Custom Properties
css-tricks.com/the-big-gotch…
Aman Singh retweeted
Vim is probably the only text editor with the
:smile
command! :)
:: masteringvim.com ::
Aman Singh retweeted
This is a classic #UI smell: Whoever designed this *knew* the user expects to find a submit button there (right after the form), so they added a note pointing them to where the actual submit button is.
Just add another submit button there, don’t point me elsewhere!
Aman Singh retweeted
I'm about to start learning JustJavaScript.com by @dan_abramov and @mappletons
Aman Singh retweeted
Mid-year browser updates: Compat Edition!
⚡️ Safari shipped gap property for flexbox
💥 Chromium fixed position: sticky table headers & tables as flex items
✨ aspect-ratio property now supported in Chrome, Edge & Firefox stable, Safari 15 beta
More here web.dev/compat2021-midyear/
Aman Singh retweeted
In case you missed it, I wrote about implementing the cut-out effect in CSS and SVG.
🔗 ishadeed.com/article/thinkin…
✍️ New Article: Thinking About The Cut-Out Effect: CSS or SVG?
This article provides a deep-dive into CSS and SVG methods for implementing a cut-out effect. Exploring different ways to solve such a problem was very interesting. Happy reading!
🔗 ishadeed.com/article/thinkin…
Aman Singh retweeted
🧵 Hiring managers: there’s no reason to force people with 10+ years experience to take coding tests. You can’t last 10 years if you can’t ship code.
Here are some better approaches.
Aman Singh retweeted
🔥 The `isolate` utility is super handy when you need to do some quirky z-index manipulation inside a component.
Gives you a *portable* isolated stacking context, instead of forcing the component into a particular z-index layer like adding `z-0` to the parent would.
Aman Singh retweeted
🥱 Tired:
24px
⚡️ Wired:
3vw
✨ Inspired:
clamp(1.5rem, 3vw, 2.5rem)
codepen.io/5t3ph/pen/KKmdZOK
Aman Singh retweeted
This is long awaited!
You’re unable to view this Post because this account owner limits who can view their Posts. Learn more
Aman Singh retweeted
"Using Next.js and Vercel to instantly load a data-heavy website" by @seif_ghezala goes into the performance problems his team faced when building a site that showcases thousands of posts daily, and how they leveraged Next.js and Vercel to solve them
tinloof.com/blog/using-next.…
































