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

Add auto-positioning for our toast component

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge jo-auto-pos-toast into main May 17, 2019
  • Overview 0
  • Commits 10
  • Pipelines 0
  • Changes 10

Created by: Johann-S

Changes:

  • added auto positioning for our toast component (top-center, top-left, top-right, bottom-center, bottom-left, bottom-right).
  • Removed the use of .hide because I cannot get elements widths

TODO:

  • Top middle
  • Bottom middle
  • Docs
  • Unit tests
  • Fix docs example situation while a toast is still showing
  • Revisit the apply styles at once approach
  • Add migration notes

You can test it here:

  • https://deploy-preview-28783--twbs-bootstrap.netlify.app/docs/5.0/components/toasts/#placement
  • https://codepen.io/Johann-S/pen/BedGrO
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: jo-auto-pos-toast