Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #19430
Closed
Open
Issue created Mar 07, 2016 by Administrator@rootContributor

.form-inline used as mixin in navbar component

Created by: andreiduca

I tried to recompile a custom distribution without the forms components (commented out @import "forms.less"; and @import "input-groups.less"; from the main bootstrap less file) and a fatal error occurred due to .form-inlineclass being used in the navbar.less component.

Bug: Class .form-inline defined in less/forms.less is used in less/navbar.less as a mixin. Trying to compile the bootstrap.less without the forms components (forms.less and input-groups.less) triggers a fatal error.

Steps to reproduce:

  1. Download and npm install the twitter bootstrap master branch.
  2. Comment out forms.less and input-groups.less from the main bootstrap.less file.
  3. grunt less should fail with the following error:
>> NameError: .form-inline is undefined in less/navbar.less on line 296, column 3:
>> 295   // Mixin behavior for optimum display
>> 296   .form-inline();

Resolution proposal: Consider moving the code from the .form-inline class declaration into a mixin in the appropriate file: less/mixing/forms.less. This should break this existing dependency and allow to compile a custom distribution without the forms components (mentioned above).

Assignee
Assign to
Time tracking