Grid: setting vertical spacing on the gutter property of Row as grid spacing is not working?
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Please check on codesandbox.
What is expected?
Downgrade the version to 4.8.2
demo
The vertical padding values should be set.
<div class="ant-col Col" style="padding: 12px 8px;">
...
</div>
What is actually happening?
The vertical padding values are missing.
<div class="ant-col Col" style="padding-left: 8px; padding-right: 8px;">
...
</div>
Environment | Info |
---|---|
antd | 4.12.2 |
React | 16.13.1 |
System | Ubuntu 20.04.1 LTS |
Browser | Chromium Version 88.0.4324.96 (Official Build) snap (64-bit) |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:20 (6 by maintainers)
Top Results From Across the Web
row-gap - CSS: Cascading Style Sheets - MDN Web Docs
The row-gap CSS property sets the size of the gap (gutter) between an element's rows.
Read more >MUI - V5 Grid System spacing not producing gutters between ...
The spacing is just not working properly. It is just creating a weird padding on the grid items where the items themselves are...
Read more >Gutters · Bootstrap v5.0
Gutters are the padding between your columns, used to responsively space and align content in the Bootstrap grid system.
Read more >Grid - Ant Design
You can use the gutter property of Row as grid spacing, we recommend set it to (16 + 8n) px ( n stands...
Read more >Space Between - Tailwind CSS
The space-* utilities are not designed to work together with the divide utilities. For those situations, consider adding margin/padding utilities to the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
its a breaking change and should be listed on changelog. how should we add padding at the bottom as of now?
@zombieJ Aha?! Not by design?
Grid Gutter
Not quite understand. So is it a breaking change? Maybe the component document need to be updated.