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

DROOP-1043 Divider is not visible when there is no header and content #866

Conversation

michal-odorski-droptica
Copy link
Contributor

No description provided.

{% block header %}
{% endblock %}

{% if has_content %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this condition needed? Is there a possibility of having a header without content in this component?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because these fields are not set as required.

{% block content %}
{% endblock %}
</div>
{% if has_header or has_content %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this condition needed? Is there a possibility of not having both blocks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there is such possibility. In this case, there's a big empty space next to the form, which looks strange. If this condition is not met, the empty space will not be rendered and the form will be centered.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, content - header content, not form ;) Get it

@js-droptica js-droptica merged commit 820a040 into 4.0.x Jan 5, 2024
2 checks passed
@js-droptica js-droptica deleted the feature/DROOP-1043-divider-is-visible-when-there-is-no-content-under-header branch January 5, 2024 12:29
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