Skip to content
Accessibility

Hide decorative cubes from screen readers

aria-hidden on the wrapper, not on every face.

Icons are the hardest isometric art to get right because there is so little room. At small sizes one of the three faces usually has to go, so we pick the two that best describe the object. A book keeps its cover and spine; a box keeps its top and front. Deciding early saves a lot of redrawing.

What you built

  • A cube with three shaded faces
  • A floor grid from gradients
  • A hover state that lifts the block
Share

8 comments

  1. June Park

    The tip about naming faces instead of colours saved our design system a lot of pain.

    Reply to June Park
  2. Gus Lindgren

    Bookmarked. The table alone is worth it.

    Reply to Gus Lindgren
  3. Dana Ortiz

    Great write-up. Would love a follow-up on doing the same thing with SVG.

    Reply to Dana Ortiz
  4. Lena Vogel

    Is there a way to do the shadow without a pseudo-element? Our CMS strips empty spans.

    Reply to Lena Vogel
  5. Hana Sato

    Has anyone tried this with container queries? Feels like a good fit.

    Reply to Hana Sato
  6. Soren Dahl

    This finally made the order of rotations click for me. I had them the wrong way round for weeks.

    Reply to Soren Dahl
    1. Nina Ahlberg

      Glad it helped. The values are in the colour ratios reference.

      Reply to Nina Ahlberg
    2. Jonah BergAuthor

      Agreed, this is the part most tutorials skip.

      Reply to Jonah Berg

Leave a comment

Your email address won’t be published. Required fields are marked.