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

<Icon />s with an intent in <Tree />s do not have the correct color #3042

Closed
johnwiseheart opened this issue Oct 17, 2018 · 7 comments · Fixed by #3355
Closed

<Icon />s with an intent in <Tree />s do not have the correct color #3042

johnwiseheart opened this issue Oct 17, 2018 · 7 comments · Fixed by #3355

Comments

@johnwiseheart
Copy link
Contributor

johnwiseheart commented Oct 17, 2018

Environment

  • Package version(s):

    "@blueprintjs/core": "^3.7.0",
    "@blueprintjs/icons": "^3.2.0",

Steps to reproduce

  1. Create a with one element, where the element icon is an with an intent

Actual behavior

It is not the correct color

Expected behavior

It should be the correct color

Extra info

Repro: https://codesandbox.io/s/mj6nnkkmwx

@johnwiseheart
Copy link
Contributor Author

Not sure why the repro has two icons though 😕

In my use case specifically, I'm seeing this css issue:
image

@giladgray
Copy link
Contributor

giladgray commented Oct 17, 2018

two icons == old CSS file in sandbox (CSS version != JS version).
classic specificity + definition order.

@johnwiseheart
Copy link
Contributor Author

Hmm, I updated the CSS and it seems fine now - maybe its a bug with having multiple versions of blueprint? https://codesandbox.io/s/9o7r6vjqlr

@giladgray
Copy link
Contributor

giladgray commented Oct 17, 2018

yes multiple versions would definitely affect the ordering of CSS rules (and therefore which ones win) in unreliable ways.

@chriswiggins
Copy link
Contributor

Actually, we're having the same problem and it is due to something breaking between 3.6.1 and 3.7.0. The latest release is also broken for trees.

I'll see what I can find and will comment back

@chriswiggins
Copy link
Contributor

The commit from pull #2466 that breaks intent colors on trees is the following: 0df5479

The documentation doesn't have intents on trees as examples so easy to miss I'd say.

How do we go about fixing this? I'm new to blueprint contributions so welcome some guidance for a pull request 👍

@jacekjagiello
Copy link
Contributor

@chrisbellande I've proposed a fix for this in PR #3355, please take a look at it, and let me know if you have a better solution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants