-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lockOpoen icon #1215
Add lockOpoen icon #1215
Conversation
e68e126
to
0ea2f00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. You'll need to add the typescript definition as well.
https://github.com/elastic/eui/blob/master/src/components/icon/index.d.ts
Thanks for taking the initiative on this. I'm a little worried that it's not different enough from the locked icon. It's only missing 4px of a line. Of course the obvious answer is reflect the top area horizontally, but we don't have room for that. My other (bad) idea is to rotate it slightly, but it's a semi-circle so that won't really make a difference but make the empty space larger.
I'll leave it up to you if you want to tweak further or just go with this. |
@cchaos That was basically my thought process and then I ended up back at this point. If we made the box part of the icon thinner, then we could flip the hook part open. I’ll whip that up and share it here to see if that feels better. Thanks for the feedback! |
@cchaos how does this look to you? It's only two pixels less wide on the square piece: |
If the hook was a bit wider I think it would be ok to also scoot the unlocked hook a little left to fit it? |
@cchaos I've updated my previous comment so we can see both versions next to one another. The latest version feels most clear where the hook has more space between it and the box. The wider hook also looks more like the original version, so current users of the lock icon likely won't notice the change, for what that's worth. |
Oh, yeah, that last one looks great! |
I even think I like the skinnier lock better anyway. |
Cool, yeah, I like the skinnier version as well. Thanks for taking a look! |
e2ca23b
to
bf75602
Compare
Summary
Fixes #1214
Adds open version of the existing lock icon.
Checklist
Any props added have proper autodocsThis was checked for breaking changes and labeled appropriatelyJest tests were updated or added to match the most common scenariosThis was checked against keyboard-only and screenreader scenarios