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.

Row component has mx property set to -32 by default

See original GitHub issue

Title says everything 😃

Here is the sandbox with reproduced bug and few examples

Edit kZB6mnv46

Setting mx to 0 solves the problem, other fields not.

Also, wrapping with Provider and theme.space = [0] solve problem a little. Giving mx = -3 which is still weird.

Provider also seems to have default theme, such as fonts etc. This must be described somewhere so people know defaults.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jxnblkcommented, Jul 17, 2017

Yeah, sorry the docs are sort of light around the components at the moment. As @ferdinandsalis said, <Row /> is meant to be used with <Column /> as a simple, no configuration sort of component. They both extend <Flex /> and <Box /> respectively, which are more generic and flexible.

The <Provider /> is documented here: https://github.com/jxnblk/rebass#provider-

0reactions
nfcamposcommented, Jul 19, 2017

@ferdinandsalis no problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add padding and margin to all Material-UI components?
You can use de "Spacing" in a BOX component just by importing the component first: import Box from '@material-ui/core/Box';.
Read more >
ServiceNow Developers
To avoid this, we've collected common sense "defaults" to prevent unwanted CSS values from being inherited within the Shadow DOM. The now-mx-inherits mixin ......
Read more >
Spacing - Bootstrap
Assign responsive-friendly margin or padding values to an element or a subset ... 1 - (by default) for classes that set the margin...
Read more >
Customizing Spacing - Tailwind CSS
Customizing the default spacing and sizing scale for your project. Use the spacing key in the theme section of your tailwind.config.js file to...
Read more >
Configuration - Spark 1.4.1 Documentation
Spark properties control most application parameters and can be set by ... of the properties that control internal settings have reasonable default values....
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