Skip to content

Add CSS resets for height and min-height #2130

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

matthiask
Copy link
Member

@matthiask matthiask commented Apr 27, 2025

Refs django/djangoproject.com#2041.

Description

Our CSS doesn't reset the height of elements to the default value of auto.
This causes problems when a site's CSS uses unscoped element styles.

(According to MDN the default value of min-width is auto as well.)

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

@bmispelon
Copy link

I can confirm that this fixes the issue for us:

Before

Screenshot 2025-04-28 at 22-54-42 The web framework for perfectionists with deadlines Django

After

Screenshot 2025-04-28 at 22-54-02 The web framework for perfectionists with deadlines Django

Thanks for working on this! 💚

@matthiask matthiask marked this pull request as ready for review April 29, 2025 04:26
@matthiask matthiask merged commit 8d31b2d into django-commons:main Apr 29, 2025
48 of 49 checks passed
@matthiask matthiask deleted the reset-height branch April 29, 2025 04:27
@matthiask
Copy link
Member Author

Thank you for testing!

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