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

Changing background on a custom icon #203

Closed
e-bacho opened this issue Apr 19, 2016 · 4 comments
Closed

Changing background on a custom icon #203

e-bacho opened this issue Apr 19, 2016 · 4 comments
Assignees

Comments

@e-bacho
Copy link

e-bacho commented Apr 19, 2016

Based on the docs, I tried setting the following class name on the icon container .slds-icon-custom-custom1 and it's not working. It only works with the standard sprite. Am I missing something here?

@e-bacho
Copy link
Author

e-bacho commented Apr 19, 2016

Ok after I opened up the css file, I can see that the class names are a bit of out whack, instead of using the icon name custom48 for example, you need to only specify the number 48 so that the class name becomes .slds-icon-custom-48. Please update the documentation or the CSS to be inline.

@kaelig
Copy link
Contributor

kaelig commented Apr 19, 2016

Thank you so much @e-bacho for using the design system and for asking us about this. Let me try to reproduce it and see how we can sync the documentation with the code.

@kaelig kaelig self-assigned this Apr 19, 2016
@kaelig
Copy link
Contributor

kaelig commented May 19, 2016

Thanks again, @e-bacho! We have amended the documentation to reflect the class names for custom icons: https://www.lightningdesignsystem.com/components/icons/#flavor-background-colors. We are also looking into making the naming more consistent, as you were suggesting.

Closing this as we are having an internal discussion about class names, and the documentation is now up to date.

@kaelig kaelig closed this as completed May 19, 2016
@kaelig
Copy link
Contributor

kaelig commented May 26, 2016

Starting in v1.0.5 (just released!), you may use slds-icon-custom-customXX classes for custom icons. Thank you again for pointing that out!

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

2 participants