-
Notifications
You must be signed in to change notification settings - Fork 840
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
[EuiAvatar] Add support for isDisabled property #4500
Comments
Just spitting out ideas for whoever picks this up. Visually this will be tough. Only thing I can think up is we grayscale the badge (which could require a css filter for the images) with a |
Adding an example to the existing section should be enough. |
Okay👍🏼 |
I just realized that EuiBadge's property is |
Does this looks good to you? @jportner |
That's perfect! |
@jportner Maybe you can help me with this I need to use !important here like that used in badges but commit is showing this error. |
@git-anurag-hub We have property: value !important; // sass-lint:disable-line no-important |
And since you're most likely getting this error during the pre-commit hooks, you'll want to install a sass-lint plugin to your editor that can alert you while you're editing. |
Okay Thanks for help.:) |
Whoop, this was has been closed via #4549 |
In implementing elastic/kibana#89344, I have found myself needing to differentiate between different Kibana spaces. We are building components that plugin owners can reuse to implement sharing for saved objects (e.g., show a list of other spaces that an object exists in, show a flyout to allow the user to change the selected spaces). However, we may have a situation where the user is using a feature that is enabled in one space and disabled in another space. In that case I'd like to be able to render those spaces differently.
If
EuiAvatar
had anisDisabled
property that would "gray out" the entire component, that would be perfect for our needs. I'm thinking something just likeEuiBadge
has:I imagine this should be straightforward to implement even if the avatar is an image, but I'm not sure.
The text was updated successfully, but these errors were encountered: