These are chat archives for japgolly/scalacss

10th
Aug 2015
bjenkinsgit
@bjenkinsgit
Aug 10 2015 15:37
Anyone know the answer to this? http://stackoverflow.com/q/31923226/3170782
Matt Hughes
@matthughes
Aug 10 2015 17:29
Look at ReactTestUtils#renderIntoDocumnet
bjenkinsgit
@bjenkinsgit
Aug 10 2015 17:43
thanks
This leads to a more general question. What is best practice for comparing the HTML you get from, say, a designer, to that which you code up in react scalatags? Do you make a test to compare the two?
Matt Hughes
@matthughes
Aug 10 2015 18:22
Have the designer look at it? :) Can’t say I have run into that problem as I don’t have anyone hand me HTML. The translation from HTML -> scalatags is pretty transparent; I think someone even wrote a regex that would do it for you.
bjenkinsgit
@bjenkinsgit
Aug 10 2015 18:24
I couldn't figure out where to fit in the call to renderIntoDocument, but that is ok, since the React chrome plugin gives me exactly the output I was looking for. Yeah, I'm usually the HTML designer as well, but I was able to push that off to a biz partner who was more picky about how the screens should look, and he offered to help with the screens, so....
@matthughes You're in Philly? Do you do contract work?
Nick Childers
@Voltir
Aug 10 2015 22:10
How do I do the sass equivalent of
.foo {
&.bar { ... }
} ?