-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Avatar] Remove customer images #2453
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
Conversation
63ef11d
to
f209e5e
Compare
@sarahill I'm in no rush to get this merged but I think we'll have to update the UI kit when it does |
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.
This is looking good! Noticed a couple things:
Hover states
When you hover on a list item the avatars get pretty lost.
Suggestion: Add a 2px
white border to help it stand out a little more.
High contrast mode
In windows high contrast mode the background of the avatars isn't visible.
Suggestion: Add a border to give these a container.
Before | After |
---|---|
![]() |
![]() |
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.
💯on adding a border for contrast. Code-wise this looks good to me 🚀
f209e5e
to
a51e76b
Compare
|
||
@media (-ms-high-contrast: active) { | ||
border: 1px solid ms-high-contrast-color('text'); | ||
} |
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.
@sarahill I've finally been able to circle back to this and add a border for high contrast mode:
a51e76b
to
413934d
Compare
413934d
to
efbd5cd
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 great! Thanks, Kyle!
efbd5cd
to
ca648e7
Compare
ca648e7
to
16212ae
Compare
16212ae
to
b9ba7fe
Compare
Hey Kyle, does this call for a style guide update? (Avatars spotted in https://polaris.shopify.com/design/illustrations#section-partner-resources) |
I believe so! I've asked Sara to update the UI kit but if the styleguide won't be updated automatically then we'll have to do it there as well. Want to pair on that @kaelig? |
We're holding off on any updates to the existing UI Kit since we're
actively working on the new kit now.
…On Mon, Jan 27, 2020 at 10:55 PM Kyle Durand ***@***.***> wrote:
does this call for a style guide update?
I believe so! I've asked Sara to update the UI kit but if the styleguide
won't be updated automatically then we'll have to do it there as well. Want
to pair on that @kaelig <https://github.com/kaelig>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2453?email_source=notifications&email_token=ACB2XNOB7OHAJVBAKRCYUO3Q76UCFA5CNFSM4JQE5KR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKB547Q#issuecomment-579067518>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACB2XNJT27PLJZOJTWDTKLLQ76UCFANCNFSM4JQE5KRQ>
.
|
</span> | ||
) : null; | ||
const avatarBody = customer ? ( | ||
<g fill="currentColor" fillRule="nonzero"> |
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.
Hey @kyledurand – as I was looking at the component, I noticed this minor refactor opportunity:
- <g fill="currentColor" fillRule="nonzero">
- <path d="M8.28 27.5A14.95 14.95 0 0120 21.8c4.76 0 8.97 2.24 11.72 5.7a14.02 14.02 0 01-8.25 5.91 14.82 14.82 0 01-6.94 0 14.02 14.02 0 01-8.25-5.9zM13.99 12.78a6.02 6.02 0 1112.03 0 6.02 6.02 0 01-12.03 0z" />
- </g>
+ <path fill="currentColor" d="M8.28 27.5A14.95 14.95 0 0120 21.8c4.76 0 8.97 2.24 11.72 5.7a14.02 14.02 0 01-8.25 5.91 14.82 14.82 0 01-6.94 0 14.02 14.02 0 01-8.25-5.9zM13.99 12.78a6.02 6.02 0 1112.03 0 6.02 6.02 0 01-12.03 0z" />
Not a huge win, but I thought I'd bring it up in case you go back to this at some point!
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.
Nice find! I have another Avatar PR up so I just made the change there: 72f8997
WHY are these changes introduced?
Fixes part of: https://github.com/Shopify/polaris-ux/issues/333
Fixes: https://github.com/Shopify/polaris-ux/issues/92
WHAT is this pull request doing?
Customer avatars are mostly unhelpful and sometimes straight up confusing. This PR replaces the multiple images with one default gray version.
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist
README.md
with documentation changes