-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[Icons] Move default icon colors to core #1388
Conversation
Move default icon colors to corePreview: documentation | table |
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.
Yeah we intentionally did away with default icon colors in core
, but we still wanted them to be a certain color when shown in the docs. See: #437.
Requesting changes because I think we shouldn't merge this.
Ha, I was looking for that issue earlier. Since then, there's also this one that happened: #1036 I wonder if that's good enough to bring back the default icon color into core. If not, I'll close this out! A lot of folks forget to add those lines to their project: .pt-icon,
.pt-icon-standard,
.pt-icon-large {
color: $pt-icon-color;
.pt-dark & {
color: $pt-dark-icon-color;
}
} Is there anything we can do to simplify? |
Hmm, based on my prior experience as a Blueprint consumer, I'd love to avoid a default icon color - gets annoying to override. I see icons as akin to letterforms, and our text doesn't ship with a default color, does it? Makes it that much easier to opt into styles via CSS classes (like As for how to train folks to do this, should we just suggest that consumers use something more generic like |
Looks like we do ship with a default text color (surprisingly not for |
Ah, interesting. Well I'm struggling to think of a good way to enforce reasonable icon colors without setting default colors explicitly. Maybe we should go through with this PR then? @giladgray @adidahiya thoughts here? |
If anything not having a default color for icons is detrimental to consistency. Just like text, we have very well defined colors people can use. Just like text, icons should render in their default color, and people can then change it explicitly through classes. Even more important now that we are moving away from a world of custom apps. |
we removed the
we never asked people to add those lines. nor should they add them, as that would bring them straight back to the pre-#437 world where they have to override icon |
instead of setting a default |
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.
strongly against this PR, for reasons noted above.
@thisisalessandro That one will remain on you and other consumers for the time being. Not sure we can have a great solution for all the use cases. |
That's exactly the problem. Instead of enforcing the desired default behavior for the system (aka icons come in the default icon color) we are prioritizing the needs of people doing work for custom Palantir apps. At the end of the day those who will need to customize the icon color will have to write CSS anyway, but we could at least make it easier for those who don't. |
Any reason why this was in docs and not core?