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

Problem with Css Modifier Class #39

Closed
staggattack opened this issue Jan 11, 2019 · 3 comments
Closed

Problem with Css Modifier Class #39

staggattack opened this issue Jan 11, 2019 · 3 comments
Labels

Comments

@staggattack
Copy link

staggattack commented Jan 11, 2019

Css modifier class "overlay" is not set correctly on the element "c-offcanvas". It will come out to "c-offcanvas-- overlay" instead of "c-offcanvas--overlay". Thus some important styles aren't applied to this element. Same issue with the element "c-offcanvas-bg".

@staggattack staggattack changed the title Problem wit Problem with Css Modifier Class Jan 11, 2019
@vmitsaras
Copy link
Owner

What's your Plugin configuration (options) ?
Initialization through HTML or Javascript?
Example Code would be helpful.

@staggattack
Copy link
Author

staggattack commented Jan 11, 2019

latest version intalled via 'yarn add js-offcanvas'

Initalized through Javascript with simple configuration:

$('#offCanvas').offcanvas({
modifiers: 'left, overlay', // default options
triggerButton: '#triggerButton' // btn to open offcanvas
});

@vmitsaras vmitsaras added the bug label Jan 11, 2019
@vmitsaras
Copy link
Owner

Quick fix

modifiers: 'left, overlay', // options: "left"," overlay"
modifiers: 'left,overlay', // <- use this! options without space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants