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
  • Merge requests
  • !22758

Collapse with flex elements

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge v4-collapse-flex into v4-dev Jun 06, 2017
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 4

Created by: Johann-S

Detect if the element use flexbox, if it's the case add .flexshow

  • Add Visual test
  • Detect all posible flex values (inline-flex, flex, etc...)

We detect flex by creating hidden div(s) and we add each class to this hidden div to detect if this div is displayed in flex mode or not.

We do that only when we call the constructor of Collapse plugins that's why I added an update method if the collapsible element change, to detect once again the appropriate show class

Close : #22600 (closed)

/CC : @mdo

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: v4-collapse-flex