Log inSign up
Log inSign up
Haz
10K posts
Haz profile banner
@diegohaz

Haz

@diegohaz
Author of @ariakitjs. Ex Automattic, WordPress. Posts about AI, Design, JS, CSS, a11y. Neurodivergent, dad.
instagram.com/ariakitjs
Joined July 2009
179 Following
14.4K Followers
RepliesRepliesRepostsRepostsMediaMediaArticlesArticles

Haz’s posts

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • Pinned
    @diegohaz
    Haz
    @diegohaz
    Nov 21
    Stop making your sidebar toggle jump around. App shell UI design in detail. Dynamic tabs and collapsible sidebar.
    Video thumbnail
    00:00
    42
  • @diegohaz
    Haz
    @diegohaz
    6h
    You (and Claude) have been styling pill buttons wrong all along. Fair warning: this one gets VERY nerdy 🤓 Round ends steal space from the text and push the icon off-center. Here's the CSS that fixes both, with a bit of π.
    Video thumbnail
    00:00
    20
  • @diegohaz
    Haz
    @diegohaz
    Nov 26
    Stop hiding close buttons behind hover. ❌ It shows under your pointer, and you close a tab by mistake. ✅ Show destructive actions always. ↔️ Give the label room with min-width. 📂 Hover is fine for a button that only opens a menu.
    Video thumbnail
    00:00
    14
  • @diegohaz
    Haz
    @diegohaz
    Nov 25
    Unpopular opinion: code quality matters more now than before AI coding agents. The codebase is the agent's input. If it's full of bug-prone patterns, the agent copies them and creates more bugs. Fast, high-quality tests, linters, and perf checks let agents verify their own work.
    34
  • @diegohaz
    Haz
    @diegohaz
    Nov 24
    If you're a nerd like me, you'll love this 🤓 Stop centering icons with align-items: center. Here's how to build a flexible box that perfectly aligns icons, text, and the box itself at any size, using CSS and a little math.
    Video thumbnail
    00:00
    32