question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

`gridTemplate` is not supported?

See original GitHub issue

šŸ› Bug report

The grid-template CSS property is not supported as a gridTemplate prop.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ianstormtaylorcommented, Jan 14, 2021

@dodas @segunadebayo @with-heart Iā€™ve seen this response to a handful of different ā€œwhere is the X prop?ā€ questions. Iā€™d encourage you to re-think this policy, itā€™s extremely confusing and frustrating as an end user.

The existing API encourages thinking of props mapping directly to CSS properties, but then it omits props seemingly at random, so you can never know which ones are supported at which arenā€™tā€¦

// supported
gripColumnGap
gridTemplateRows
flexDirection
borderColor
borderStyle

// unsupported
columnGap
gridTemplate
flexFlow
borderImage
clipPath

There doesnā€™t seem to be any reasoning behind which props get supported and which donā€™tā€¦

So whenever you try to set one of these props you run into weird errors and have to realize that Chakra doesnā€™t recognize it. Then you have to use both the existing props that do work and the cx prop to achieve what you were doing, which just complicates the libraryā€™s usage even further.

1reaction
segunadebayocommented, Jan 17, 2021

Iā€™ve added support for the missing grid props and flex-flow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

grid-template-columns is not working - Stack Overflow
But the grid-template-columns property does not work for me, whatever value I put there, the content does not move.
Read more >
'grid-template-columns' is not supported by Internet Explorer ...
When using a grid layout with grid-template-columns in a CSS file, the extension suggests to use -ms-grid-columns . When added, the error doesĀ ......
Read more >
grid-template-columns - CSS: Cascading Style Sheets | MDN
The grid-template-columns CSS property defines the line names and track sizing functions of the grid columns.
Read more >
"grid-template-columns" | Can I use... Support ... - CanIUse
CSS property: grid-template-columns: subgrid ; Chrome. 4 - 107 : Not supported. 108 : Not supported ; Edge *. 12 - 107 :...
Read more >
grid-template-columns css not working - WordPress.org
Hi, When I try to put grid related css for example selector { display:grid; gap:30px; grid-template-columns: 1fr 1fr 1fr; } Its not working...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found