-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Fix <DocCard>
height in theme styles
#10849
base: main
Are you sure you want to change the base?
Conversation
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Hmm, our visual regressions test shows 0 change. I can't really see a difference between these 2 pages:
Is there anywhere in the site (including our dogfood |
bug is brought to light here |
I do see the difference now:
There are multiple ways to achieve this, but |
can you share the other possible ways to fix this? |
also any idea why visual testing didn't detect the change? |
Hmmm actually I'm not super fan of this solution: this makes the In the future we may add this component to our "theme design system" so that users can use it as a standalone component. Forcing a I'd prefer if Alternative solutions probably involve using things like display flex / alignItems stretch / flex 1 0
Probably a little bug in my "screenshot exclusions" in Edit: Oh I see, the index doc has
This effectively add a Unfortunately, this is on purpose since we want the unlisted item to automatically disappear from the navbar. This is not a big deal if we don't screenshot that page, unfortunate that in this specific PR we would have liked a screenshot 😅 But this screenshot is a bit surprising 🤔 https://app.argos-ci.com/meta-open-source/docusaurus/builds/1105/131471586 https://deploy-preview-10849--docusaurus-2.netlify.app/tests/docs/category/tests Edit: we take screenshots in DEV mode and an extra "draft doc" is kept, this creates an offset in the list and makes this bug appear on the "External link test" card: Then we have this CSS rule that messes things up 😅 @media (min-width: 997px) {
.list_ZO3j article:nth-last-child(-n+2) {
margin-bottom: 0px !important;
}
} |
Pre-flight checklist
Motivation
Ensure that the
<DocCard>
component maintains full height in its styles for better layout consistency.Test Plan
before
after
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs