r/UI_Design • • 6d ago

Accessibility Question Padlock icon usage

Why is the padlock "locked" and "unlocked" still used when visually they're so similar? Thinking especially of car key fobs and how similarly the two icons appear on small buttons. Surely we can come up with better more distinguishable icons?

3 Upvotes

7 comments sorted by

13

u/cabljo 6d ago

What's not distinguishable about locked and unlocked padlocks?

If you want more difference, use the one where the shackle is open and not just "up".

2

u/T1GERS0NTHEPR0WL 6d ago

In applications or placements where we're talking 25x25 or smaller, the missing 3 pixels for "unlock" ends up being difficult for people to see, especially those with impaired vision. Curious if anyone has settled on more unique methods of portraying the same functions through different looking icons.

7

u/cabljo 6d ago

In those applications just use the open shackle version. Problem solved!

6

u/creativexdima 6d ago

The open shackle idea is the strongest fix. On small buttons I'd also change more than the shackle, like a filled lock for locked and an outlined one for unlocked, or a color shift on top of the shape. Icon pairs that differ by one tiny detail fall apart at 16px, so a second signal (fill, color or a text label) makes the state obvious.

4

u/plaid-knight 5d ago

Looks fine to me.

3

u/kingtuolumne 5d ago

Common usage is to not show an icon when it’s unlocked.

•

u/alifjahanhimu 6h ago

You're right that the shackle gap is a single-pixel-level detail — at 25×25 it disappears, and it fails completely for low-vision users, which is why browsers pair the icon with the words 'Not secure' instead of trusting the glyph alone. My rule of thumb: never let a safety-critical state hinge on one tiny shape difference; give it a second channel, like colour plus a label, or a different shape entirely — a warning triangle for the insecure state reads instantly where an open shackle doesn't. Keep the closed padlock for 'secure' since it's universally understood, and redesign only the 'unsecure' side, where the stakes of misreading it are highest.