Skip to content
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] requires more customization #693

Closed
uboness opened this issue Apr 23, 2018 · 4 comments
Closed

[Avatar] requires more customization #693

uboness opened this issue Apr 23, 2018 · 4 comments
Assignees

Comments

@uboness
Copy link
Contributor

uboness commented Apr 23, 2018

I was trying to use Avatar in its current form, but it's not working for me. Here're a few suggestions:

  • Make color to be configurable property - usually the color of the avatar is associated with the user in more places, so mostly the color will need to be provided rather than auto-generated internally in the component

  • More on color - currently the color in the Avatar is limited to a set of the available visualization colors. It would be nice to remove this limitation, and instead have EUI provide a set of color generators. These generators can:

  1. generate a random color that fits Kibana's color scheme (some sort of pastel color generator)
  2. generate a color (again, one that fits Kibana's color scheme) from a given seed (can either be a number or a string). This will bring quite a bit of powerful flexibility for creating consistent behavior. I think the best way would be to use HSL colors for that (I think it'll give use more control of the generated color scheme)... oh yea... and these functions should also accepts an alpha/opacity value (so hsla).
  • Make the text fallback (initials) customizable - I'd expect the component to accept an "initials" prop. these should be max 2 characters (if longer string is provided, the component will only pick the first two).
@snide
Copy link
Contributor

snide commented Apr 23, 2018

Makes sense. Kinda went in this direction with the badge component. Can do something similar.

@snide snide mentioned this issue Apr 30, 2018
44 tasks
@cchaos
Copy link
Contributor

cchaos commented May 25, 2018

Also need the ability to specify circle (user) vs square (spaces) shape.

@cchaos
Copy link
Contributor

cchaos commented May 25, 2018

It might be nice to be able to hook in to the Gravatar API to use images from that service if they've signed up for it.

@snide
Copy link
Contributor

snide commented Feb 16, 2019

Closing this one. The above PR tackled most of the issues here.

@snide snide closed this as completed Feb 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants