[Row] please add prop to remove top margin
See original GitHub issueSummary
All Row
components in the main body of the page have a default margin-top
value:
These lines appear to be the cause:
But unlike the Column
component, there’s no prop to remove this spacing if needed.
We would like to have a prop we could use for the Row
component that removes this margin value.
Justification
There are instances in IBM Security designs where there are no margins between rows, so we would like the flexibility to remove these margins easily without a messy style override.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Removing margin from flex items when they wrap
So what you would do is use grid-gap for spacing between the items. Then use padding for the same spacing between the items...
Read more >margin-top - CSS: Cascading Style Sheets - MDN Web Docs
The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors,...
Read more >Removing right/left content margins
Hello,. My client is asking to remove right and left margins from the applications and I cant find where, this is how it...
Read more >margin | CSS-Tricks
Each of the margin properties can also accept a value of auto . ... to redefine any of the top margins to remove...
Read more >How To Adjust the Content, Padding, Border, and Margins of ...
Add the following highlighted line to your CSS rule in your ... You can remove this margin by setting the top and left...
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 FreeTop 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
Top GitHub Comments
@jendowns yeah its nothing special about rows, that space just gets added to top level children. Wrapping the rows (or any group of elements) will prevent them from each getting the margin top.
Sorry for the break, it was a pretty big shift in how we handle vertical rhythm. I’d prefer wrapping the rows rather than adding a prop to each row, I’m not a fan of how copy-and-paste repetitive the column props are.
I think either way, it would be fine to add an option to remove the margin since Column does that as well. But just wanted to you to know that the styles may be changing with this second space audit.