$enable-* Variables for each component
See original GitHub issueWhat do you think about creating a $enable-*
variable for each component? So the bootstrap.scss would be even more modular.
By default, the variables would be set to true
. For example, if the "jumbotron"component is not desired, you could disable it as follows:
$enableJumbotron: false;
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Solved: Update global variable within component
This will enable you to update global variables from within your component. In your component, have you tried toggling on the "Access app...
Read more >Reusable Components - Variables and Properties
Learn about how to use a variable in a component. Even though a variable may be 'global', it is scoped to its own...
Read more >How to Use Variables within Classes | Pluralsight
In this guide, you learned how to declare and use variables such as local, global, static, state, and props as a variable. Developers...
Read more >How to set GLOBAL VARIABLE at Page level, which is used ...
Is there any way we can Set some GLOBAL VARIABLE at page level , which can be used by all the LS Components...
Read more >How to declare a global variable in React? - Stack Overflow
You can declare a global context variable in any of the parent components and this variable will be accessible across the component tree...
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 Free
Top 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
This is essentially the same as commenting out an import statement in
bootstrap.scss
. I know there’s a bit more to it when it comes to shared components, but it’s basically 1:1. It’s been requested before and I was a pass then, still am now.@mdo but you have to copy the
bootstrap.scss
before. Duplicated content has always been a bad practice.The following example shows - this is not 1:1 the same thing.
vs.