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
  • !27683

Add new Horizontal List Group class.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/sts-ryan-holton/horizontal-list-group into v4-dev Nov 17, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: sts-ryan-holton

Hi 👋

🚀 Preview: https://deploy-preview-27683--twbs-bootstrap4.netlify.com/docs/4.2/components/list-group/#horizontal-list-group

Back in September I opened a new feature request about adding a new horizontal list group class to the existing list group (see: https://github.com/twbs/bootstrap/issues/27291) as I felt that although this could be done with pure utility classes it was difficult to get the border radius to match up.

Here, I am opening a new PR containing my first attempt/implementation at adding a few new classes in addition to the existing .list-group class which shouldn't contain any breaking change, but rather extend the current classes.

Here's a breakdown of the initial changes that this PR contains (open to additional contributors):

  • Add new .list-group-horizontal modifier class.
  • Add new .list-group-horizontal-responsive class for dealing with responsive horizontal list groups (this also works with the existing -sm|-md|-lg|-xl variants)
  • Add support for the .list-group-flush class to horizontal list group.
  • Update List Group docs with the new Horizontal List Group and Responsive variant.
  • Test with existing modifier classes such as: .active, .disabled and with <a> elements.
  • Add new border-radius mixins to support the new classes.
  • Utilise as many existing variables and primary extend only.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/sts-ryan-holton/horizontal-list-group