-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Why I need to write col-xs-12 if I want full column width on mobile with Flexbox grid? #17603
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
Comments
It isn't so much with mobile, so much as whenever the screen falls beneath any breakpoint in v3, if there isn't a With flex, Would it be possible to have If not, then @smajl you may have to put |
@matt-hernandez Yeah, I know, with "mobile" I was referring to resolutions <34em rather then to physical device. :) This was not so clear. Thanks for the explanation of the problem. The "parent" @if $enable-flex {
@include media-breakpoint-down(xs) {
.col {
flex-basis: 100%;
}
}
} |
+1 to adding However, given that this issue also happens at the [class*="col-"] {
flex-basis: 100%;
} |
Resolved with #17603, which adds auto layout to flexbox grid cols. |
Actually, this wasn't "resolved", but the grid behavior has changed and you need the default |
The flexbox enabled grid in bootstap 4 requires the lowest `.col-` to be set. twbs/bootstrap#17603 (comment)
The flexbox enabled grid in bootstap 4 requires the lowest `.col-` to be set. twbs/bootstrap#17603 (comment) Sync to source repo @014cb111b8284f61d832ac3b6b5f868cbbc08fa5
The flexbox enabled grid in bootstap 4 requires the lowest `.col-` to be set. twbs/bootstrap#17603 (comment) Sync to source repo @014cb111b8284f61d832ac3b6b5f868cbbc08fa5
The flexbox enabled grid in bootstap 4 requires the lowest `.col-` to be set. twbs/bootstrap#17603 (comment) Sync to source repo @014cb111b8284f61d832ac3b6b5f868cbbc08fa5
The flexbox enabled grid in bootstap 4 requires the lowest `.col-` to be set. twbs/bootstrap#17603 (comment) Sync to source repo @014cb111b8284f61d832ac3b6b5f868cbbc08fa5
The flexbox enabled grid in bootstap 4 requires the lowest `.col-` to be set. twbs/bootstrap#17603 (comment) Sync to source repo @014cb111b8284f61d832ac3b6b5f868cbbc08fa5
The flexbox enabled grid in bootstap 4 requires the lowest `.col-` to be set. twbs/bootstrap#17603 (comment)
In v3, every column class (if not specified otherwise with
col-xs-?
class) was breaking to full width on mobile. In v4 Flexbox version I need to writecol-xs-12
manually everywhere to achieve the same thing. Is this by design or bug?The text was updated successfully, but these errors were encountered: