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

.accordion-icon gets added by JS even if we don't want or need it #199

Open
AWearring opened this issue Sep 24, 2024 · 0 comments
Open

.accordion-icon gets added by JS even if we don't want or need it #199

AWearring opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@AWearring
Copy link
Contributor

AWearring commented Sep 24, 2024

We have our own Accordion twig files to add our preferred Font Awesome icons to the accordion panes we therefore don't want or need <span class='accordion-icon' aria-hidden='true'></span> that gets added to the DOM in modules/localgov_subsites_paragraphs/js/localgov-accordion.js

Could these icons not be added via the twig file modules/localgov_subsites_paragraphs/templates/paragraph--localgov-accordion-pane.html.twig instead of using JS?

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

No branches or pull requests

1 participant