question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

V5 Offcanvas : Add offcanvas-footer

See original GitHub issue
  <div class="offcanvas-footer">
    ...
  </div>
.offcanvas-footer{
    padding: 1rem 1rem;
    border-top: 1px solid #dee2e6;
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
DaleyKDcommented, Oct 19, 2021

I wish I could +1 this and that it wasn’t punted.

For v4, I’ve used my own version of “modal-right” which took the all the classes of a modal and fixed it to the right. Then today I stumbled across the offcanvas component and realized it’s exactly what I need, but it lacks a footer.

Ideally, I see the offcanvas being the Bootstrap version of Material’s Drawer or Microsoft’s Panel. The footer absolutely brings value if you’re using an offcanvas to do additional functionality (like a modal) but with it being fixed to the side.

0reactions
ianhughesfscommented, Jun 30, 2022

That should do it:

https://codepen.io/wellol/pen/oNEarzR

Thanks for this!

Just an observation that might be helpful to others but this only works when the offcanvas modal is fixed. The footer gets covered up if you allow vertical scrolling. (long list of options, etc.)

GH

Read more comments on GitHub >

github_iconTop Results From Across the Web

Offcanvas · Bootstrap v5.0
Build hidden sidebars into your project for navigation, shopping carts, and more with a few classes and our JavaScript plugin.
Read more >
Offcanvas · Boosted v5.2
Build hidden sidebars into your project for navigation, shopping carts, and more with a few classes and our JavaScript plugin.
Read more >
How to display Bootstrap Offcanvas inside a Modal
... Show a "Offcanvas right" by clicking the button below. ... </div> <div class="modal-footer"> <button class="btn btn-primary" ...
Read more >
Bootstrap 5 pop-up Footer with offcanvas on Codeply
Hello Bootstrap 5. This is a Bootstrap 5 Offcanvas example footer! Toggle Footer ...
Read more >
Bootstrap 5 Crash Course Tutorial #17 - Offcanvas - YouTube
... tutorial you'll learn about a new sidebar component - the Offcanvas. ‍ View this course in full now -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found