Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying the breakpoint container element #7816

Open
4 tasks done
kilobyte2007 opened this issue Dec 5, 2024 · 0 comments · May be fixed by #7818
Open
4 tasks done

Allow specifying the breakpoint container element #7816

kilobyte2007 opened this issue Dec 5, 2024 · 0 comments · May be fixed by #7818

Comments

@kilobyte2007
Copy link

Clear and concise description of the problem

When using breakpointsBase: 'container', the container element will be used as the size reference.

In our situation, we need the swipes per slide to change based on the size of a parent higher up the DOM tree.

Suggested solution

I suggest allowing the setting of breakpointsBase as a DOM element or a CSS selector. This would make it much more flexible. Or we can have a separate parameter like breakpointBaseContainer when breakpointsBase is container.

Alternative

No response

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

  • I'm willing to open a PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant