UI shell option for no padding on content
See original GitHub issue2rem padding was introduced on bx--content
in 10.3.0.
If you’re using grid in UI shell, bx--grid
sets the outermost 2rem padding.
UI shell should have an option to not add padding to bx--content
to give the application full control over its layout. Or, default to no padding and have an option (class) to add padding.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Remove padding between stackable grids in Semantic UI
I: Semantic UI Way. You can modify the SUI theming variables for this purpose. Here's how: Modify definitons/collections/grid.less
Read more >Step 13: Margins and Paddings - Documentation - SAPUI5 SDK
We have to set the width of the panel to auto since the margin would otherwise be added to the default width of...
Read more >Increase padding in gnome terminal - Ask Ubuntu
Padding as in: I want space between the window border and where the text input/output is displayed.
Read more >2.5 I do not understand how padding behaves - Codecademy
Remember, the padding is the space between your border and your innermost layer: the actual content. But there's no actual content in our...
Read more >NET MAUI Shell flyout - Microsoft Learn
The navigation experience provided by .NET Multi-platform App UI (.NET MAUI) Shell is based on flyouts and tabs. A flyout is the optional...
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
Hi @FabianPiconeDev - thanks for your comment. I agree that this override should not be required by everyone who uses the
Content
component with the grid.We are currently evaluating CSS Grid as part of our 2021 release. See https://github.com/carbon-design-system/carbon/issues/7538
CC @joshblack @tay1orjones can we make sure to look at the
Content
component to make sure it plays nicely with our updated grid, so we can then remove this override used in the tutorial?I ran in to the same issue, there is even a comment linked to this issue in the official Carbon React tutorial’s index.scss.
Even if i use
bx--grid--narrow
, the additional left padding is still there. IMO the problem is more on the combined usage of theContent
component and the Carbon Grid classes, not the UI Shell (which only consists in Header, Left-/Right Panel as far i can see).I see it can be compensated:
But for me this is a workaround, not an option.