Skip to content

Added option for responsive offcanvas#1246

Open
frdij wants to merge 3 commits intovikramlearning:mainfrom
frdij:offcanvas-responsive
Open

Added option for responsive offcanvas#1246
frdij wants to merge 3 commits intovikramlearning:mainfrom
frdij:offcanvas-responsive

Conversation

@frdij
Copy link

@frdij frdij commented Feb 3, 2026

Responsive offcanvas was added in Bootstrap v5.2.0 and requires replacing the standard .offcanvas class with a breakpoint specific class.
https://getbootstrap.com/docs/5.3/components/offcanvas/#responsive

This PR adds a new parameter Responsive of type OffcanvasResponsive (enum) to the Offcanvas component. Via this new parameter the desired class will be added similar to how Placement works.

Resolves #849

@frdij
Copy link
Author

frdij commented Feb 3, 2026

#849 proposed to suppress the default class and I did see there is already PR #859 which adds EnableDefaultClass parameter however, I think it's much nicer to add a parameter Responsive with enum to specify desired class instead of requiring to both set EnableDefaultClass parameter and adding desired Bootstrap class "manually".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Responsive Offcanvas requires suppressing class="offcanvas"

1 participant