Bootstrap: Documentation $enable-flex Needs Improvement

Created on 6 Dec 2016  路  4Comments  路  Source: twbs/bootstrap

The documentation is confusing for newcomers looking to _get started_ with sass and flexbox. Currently the documentation says:

  • Open the __variables.scss_ file and find the _$enable-flex_ variable.
  • Change it from _false_ to _true_.
  • Recompile, and done!

This is where it gets confusing: Most of us are using task managers like gulp or grunt, and dependency manages like bower. In my case I'm _@import "bootstrap";_ in my style.scss file. This leaves to questions which I think the documentation needs improvement:

To properly override this variable do I need go into bower_compoonents/bootstrap/scss/ __variables.scss_ and change it there or do I need to create that file in: /public/assets/sass/ _variables.scss with 1 variable $enable-flex: true

I wouldn't mind updating documentation if I knew this answer myself.

css docs v4

Most helpful comment

We're, uh, removing the option entirely. 馃槅 Won't be an issue anymore with #21389鈥攚e're going all in on flexbox.

All 4 comments

The documentation should suggest modifying _custom.scss instead. The Getting Started > Options section was updated, but not flexbox.

You can also create your own _custom.scss file and @import it before you @import bootstrap;.

If flex is the only thing you need enabled, you could always try @import "bootstrap-flex", but I can't guarantee that will work.

razh, that worked. :) I created a _custom.scss and @import before. Worked perfectly. :)

We're, uh, removing the option entirely. 馃槅 Won't be an issue anymore with #21389鈥攚e're going all in on flexbox.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leomao10 picture leomao10  路  3Comments

bellwood picture bellwood  路  3Comments

devfrey picture devfrey  路  3Comments

eddywashere picture eddywashere  路  3Comments

MrCsabaToth picture MrCsabaToth  路  3Comments