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

An option to disable default styling. #45

Closed
Eliasyoussef47 opened this issue Jul 20, 2022 · 4 comments
Closed

An option to disable default styling. #45

Eliasyoussef47 opened this issue Jul 20, 2022 · 4 comments
Labels
idea New feature or request question Further information is requested

Comments

@Eliasyoussef47
Copy link

I would like an option to disable the default styling of the accordion. I just want this package to facilitate the collapsing and opening. I want to be able to style the elements freely.

@michu2k michu2k added idea New feature or request question Further information is requested labels Jul 21, 2022
@michu2k
Copy link
Owner

michu2k commented Jul 21, 2022

Hi @Eliasyoussef47
Just don't include the CSS file in your project and you won't have any default styling.

Cheers

@Eliasyoussef47
Copy link
Author

Thanks for replying.
I tried that already but it made the content always displayed (never hidden)

@michu2k
Copy link
Owner

michu2k commented Jul 21, 2022

You can copy the styles from this file https://github.com/michu2k/Accordion/blob/master/src/accordion.scss and remove unnecessary styling. You can surely remove the .ac-text, .ac-header and .ac-trigger classes and styles from the .ac class.

@Eliasyoussef47
Copy link
Author

Eliasyoussef47 commented Jul 21, 2022

Thanks.
I've already implemented an accordion using a different package so I won't be testing this but I trust it will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants