-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
[Avatar] Use semi-transparent border #3859
Conversation
Update image Avatars to have a semi-transparent border per MD spec.
That looks good to me 👍 |
Where does the spec specify color? What happens if someone wants to display an avatar on an |
It doesn't - you'll have to closely examine the examples.
What do you mean by 'what happens'? Have you tried? What happened? What would you expect to happen instead? |
Well, I haven't tried, but the border would become invisible, no? I went through and cleaned out all the hard-coded colour values in this code-base some time ago so that themes would work properly. Pretty sure I chose |
Best not to make assumptions then. 😄
No.
It isn't hard coded - it can be overridden both in the theme, and also the Calculating the colour of a semi-transparent border over the image from |
On 04/10/2016 22:30, Matt Brookes wrote:
This is a very reasonable assumption.
Umm, yes? How can a transparent version of the same color as the background be visible? Here: http://jsbin.com/fizidahaci/edit?html,css,output Can you see the border on the second div?
Overrides of the latter sort only work per-instance, not application-wide, whereas if it's based on the palette, it's very easy to update consistently, and if based on |
As the color is in the theme, it can be changed once for the whole application. The question is whether or not should we use the |
I was referring to using style/className, the new getMuiTheme functionality does appear to make this significantly less of an issue though.
If you have textcolor white, it's because you have a dark background color though, making a dark border less visible. 50% grey is probably the most widely useful color at least though. Is the idea to replace all the theme elements that are based on modified |
There is no plan, that I'm aware of, into that direction. |
Update image Avatar to have a semi-transparent border per MD spec.