Hi there π, welcome! Please introduce yourself, and if you have a question, please use this: https://help.glamorous.rocks
kentcdodds on v5.0.0
kentcdodds on deprecate
kentcdodds on master
fix: officially deprecate the p⦠(compare)
npm start validate
fails. Test are failing (6) and I wanted to see if I am missing something before opening an issue. I'm certain there is something I missed, but nothing is standing out as of now. Thanks.
npm start test
yields a more descriptive error message. I suspect there is something environment that is not setup on my machine in some way (a globally installed package, etc.). Whatever the cause is, it would be at least good to document the outcome for others; surely I'm not the only one with this problem.
<Link prop='a choice'>
vs AChoiceLink
I'm trying to define a grid-template-area using Glamorous, which relies on the values being multiline. I just want to make sure I'm doing it correctly.
this is the CSS way of doing grid-template-area:
grid-template-areas: "head head"
"nav main"
"nav foot";
this is what I'm doing now in Glamorous that works:
gridTemplateAreas: `'head head' \n
'nav main' \n
'nav foot'`,
notice the template string with strings inside and newlines, a bit hacky. is there another way to write it?
Hey, I've been trying to figure out what the syntax is for nested styles. I'm not actually using a nested Component but simply a nested style like:
const Header = glamorous.header({
display: 'grid',
gridTemplateColumns: 'repeat(2, 1fr)',
& div: {
height: 0
}
})
It seems like that used to work? I see references to some of that kind of support being removed and the only references I see now are regarding nested Components with the [bracket] syntax, but that doesn't seem to carry over to nested styles. Thanks!
[
and ]
. '& div'
is a totally valid key for an object :wink: https://codesandbox.io/s/vy6660k3j3
> glamorous@0.0.0-semantically-released validate /Users/powell_v2/Downloads/glamorous
> kcd-scripts validate lint,build-and-test,test:cover
/Users/powell_v2/Downloads/glamorous/node_modules/kcd-scripts/dist/utils.js:135
scripts = Object.entries(scripts).reduce(function (all, _ref3) {
^
TypeError: Object.entries is not a function
at getConcurrentlyArgs (/Users/powell_v2/Downloads/glamorous/node_modules/kcd-scripts/dist/utils.js:135:20)
at Object.<anonymous> (/Users/powell_v2/Downloads/glamorous/node_modules/kcd-scripts/dist/scripts/validate.js:32:53)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
at startup (bootstrap_node.js:149:9)