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
  • #9881
Closed
Open
Issue created Aug 19, 2013 by Administrator@rootContributor

.hide and .show classes with !important breaks $(elem).show();

Created by: Bartmax

I think this is lazy implementation and it breaks when using $(elem).show() or $(elem).hide() using jQuery since the hide class get more importance since the badly (IMO) use of !important.

I think BT should not declare this so generics classes with !important, it makes difficult to customize. I don't like the idea of having another class for doing display: none because BT uses !important.

In my opinion, having a rule like : .hide { btn&, ul li&, etc.. { display:none; }} isn't much work and won't break anything. also footprint shouldn't increase a lot since the .hide pattern will be greatly gzipped.

right now, having a <div id="someId" class="hide"></div> will break $('#someId').show() function of jQuery.

Assignee
Assign to
Time tracking