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

Add `ol.list-group` with pseudo-element numbers

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Otto requested to merge ol-list-group into main Feb 12, 2021
  • Overview 5
  • Commits 3
  • Pipelines 0
  • Changes 3

Fixes #26202 (closed), closes #32244.

Originally mentioned by me at https://github.com/twbs/bootstrap/pull/32244#issuecomment-760444399.


Uses generated content via CSS to add the numbers inside list group items. This is done because the styling available for normal ordered/numbered lists affords basically no ability to style, place, align, etc the numbers. This way, people can apply their own custom styles to the ::before element and match or differentiate them as desired.

Preview: https://deploy-preview-33068--twbs-bootstrap.netlify.app/docs/5.0/components/list-group/#ordered-list

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ol-list-group