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
  • #16150
Closed
Open
Issue created Mar 25, 2015 by Administrator@rootContributor

.alert-dismissible as default target for Dismissible alerts

Created by: ghost

The Bootstrap docs indicated that "When using a .close button, it must be the first child of the .alert-dismissible ...".

But actually, the real target selector for the event is .alert.

It seems to me more logical to change the selector in the file alert.js at line number 39 to: $parent = $this.closest('.alert-dismissible')

Thus the .alert class unbinds from JavaScript and allows you to use dismissible alerts without must-have styles from the class .alert. Use only class .alert-dismissible, as described in the documentation.

Assignee
Assign to
Time tracking