-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slds-col--padded breaks grid system #244
Comments
Thanks for bringing this to our attention. The documentation is not ideal at the moment but due to the nature of flexbox, the class is telling it "grow" to consume the available white space. To have it not do that, add the class |
But why is it only being applied by slds-col--padded? It appears the purpose of that class is to simply add padding to the block, not changing it's flex properties. If you unset the flex property, the padding is still applied and the box doesn't grow. Example: |
We'll look into clearing up this confusion. Thanks again for reporting! |
Sorry, just a bit confused. Is this the intended functionality? Why would slds-col--padded need to do anything besides add padding inside the element? |
It is the intended functionality. Its a modification of
|
Alright, well if it's the intended functionality then updating the docs would be sufficient. However, as a user it seems far from intuitive as the class is doing more than it's name implies. |
Closing this as |
The documentation states:
However, applying this class to a column that's also utilizing the grid system causes the grid size to be ignored. Example: https://jsfiddle.net/bngc6763/3/
This is caused by the following rule:
The text was updated successfully, but these errors were encountered: