-
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
[core] [Label] render label element instead of div #1972
[core] [Label] render label element instead of div #1972
Conversation
Thanks for your interest in palantir/blueprint, @gianmarcotoso! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
It's failing on the |
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.
Code changes LGTM. Thanks! FYI @gianmarcotoso We ultimately omitted tests after initially writing them because of the trivial nature of the component. I'm open to including tests personally, but let's wait to hear from @adidahiya.
|
||
import { Classes, Label } from "../../src/index"; | ||
|
||
describe("<Label>", () => { |
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.
@adidahiya FYI these tests
@gianmarcotoso what's the status of this PR? first step for you is to merge latest |
Sorry I totally forgot! I'll do it tomorrow so that hopefully we'll get
this thing done! :)
…On Mon, Jan 29, 2018, 22:58 Gilad Gray ***@***.***> wrote:
@gianmarcotoso <https://github.com/gianmarcotoso> what's the status of
this PR? first step for you is to merge latest develop, which *should*
resolve build issues. please close this PR if you don't have time to finish
it and i'll pick up this feature (encountered this issue in my own app
development 😄 )
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1972 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADIFfzCFgnnNu490M8Snh4jbKamkcMzwks5tPj8VgaJpZM4RP1YO>
.
|
…gt/fix-label-component-element
So, I did pull the latest
I don't think these are related to my changes, do you get them as well? |
@gianmarcotoso push it up! let's see if it fails on circle. those two tests are flaky, particularly when run in chrome (local) vs phantom (circle). |
Nope, still borked - even though only one is failing now, still on the |
Not your fault on the broken unit test -- I think it's broken on develop. Regarding the unit tests -- yes, they are too simple. Please remove them, I don't think it's worth keeping around tautological tests that just verify the basic structure of the component. |
Ok, I'll remove the tests, merge develop again for good measure and push again later today (hopefully!) |
@gianmarcotoso still waiting on that push... |
…gt/fix-label-component-element
…toso/blueprint into gt/fix-label-component-element
Sorry, pushed right now! Edit: and the checks have passed! 🎉 |
thanks @gianmarcotoso! |
You're welcome, thank you for Blueprint! :) |
Fixes #1971
Fixes #1971
Changes proposed in this pull request:
The
Label
component originally returned adiv
element, which was not supported by the.pt-label
selector. I modified thelabel.tsx
file so that it returns alabel
element instead of adiv
.Reviewers should focus on:
I have written some tests for the
Label
component (which were previously missing), but they are very naïve. Maybe there's more stuff that could be tested.