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

Add missed css_class to layout templates #10

Merged

Conversation

kosdmit
Copy link
Contributor

@kosdmit kosdmit commented Jul 22, 2024

PR to fix issue #9

It adds css_class attribute in accordion.html, accordion-group.html and tab.html templates.

Comment on lines +213 to +216
@pytest.mark.xfail(
__version__ < "2.3",
reason="Issue #1395 - AccordionGroup gets unexpected css_class 'active'",
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I marked this test as xfail because we run tests with crispy-forms version 1.x too.
I think about updating the test matrix in a separate pull request.

@kosdmit kosdmit closed this Jul 23, 2024
@kosdmit kosdmit deleted the fix-missed-accordion-css-class branch July 23, 2024 18:44
@kosdmit kosdmit restored the fix-missed-accordion-css-class branch July 23, 2024 18:45
@kosdmit kosdmit reopened this Jul 23, 2024
@kosdmit kosdmit changed the title Add missed css_class to accordion and accordion-group templates Add missed css_class to layout templates Jul 24, 2024
@smithdc1
Copy link
Member

Looks good to me. Thank you!.

@smithdc1 smithdc1 merged commit 20ed62c into django-crispy-forms:main Aug 10, 2024
4 checks passed
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.

2 participants